From 5bf66662a9bdd62c5bccab15e607cd95cfb8fcab Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Mon, 27 Jul 2020 10:05:23 +0200 Subject: Removed wordpress and phpmyadmin, my server doesn't handle it well and it brings shame on my familly --- .../class-wp-customize-code-editor-control.php | 110 --------------------- 1 file changed, 110 deletions(-) delete mode 100644 srcs/wordpress/wp-includes/customize/class-wp-customize-code-editor-control.php (limited to 'srcs/wordpress/wp-includes/customize/class-wp-customize-code-editor-control.php') diff --git a/srcs/wordpress/wp-includes/customize/class-wp-customize-code-editor-control.php b/srcs/wordpress/wp-includes/customize/class-wp-customize-code-editor-control.php deleted file mode 100644 index 0e687a2..0000000 --- a/srcs/wordpress/wp-includes/customize/class-wp-customize-code-editor-control.php +++ /dev/null @@ -1,110 +0,0 @@ -editor_settings = wp_enqueue_code_editor( - array_merge( - array( - 'type' => $this->code_type, - 'codemirror' => array( - 'indentUnit' => 2, - 'tabSize' => 2, - ), - ), - $this->editor_settings - ) - ); - } - - /** - * Refresh the parameters passed to the JavaScript via JSON. - * - * @since 4.9.0 - * @see WP_Customize_Control::json() - * - * @return array Array of parameters passed to the JavaScript. - */ - public function json() { - $json = parent::json(); - $json['editor_settings'] = $this->editor_settings; - $json['input_attrs'] = $this->input_attrs; - return $json; - } - - /** - * Don't render the control content from PHP, as it's rendered via JS on load. - * - * @since 4.9.0 - */ - public function render_content() {} - - /** - * Render a JS template for control display. - * - * @since 4.9.0 - */ - public function content_template() { - ?> - <# var elementIdPrefix = 'el' + String( Math.random() ); #> - <# if ( data.label ) { #> - - <# } #> - <# if ( data.description ) { #> - {{{ data.description }}} - <# } #> -
- -