diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 9b313f07f..e44d1380d 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -3506,11 +3506,6 @@ function screen_meta($screen) { $_wp_contextual_help[$screen] = $help; } break; - case 'theme-editor': - case 'plugin-editor': - $settings = '

' . __('Enable syntax highlighting') . '' . __('Disable syntax highlighting') . "

\n"; - $show_screen = true; - break; case 'widgets': if ( !isset($_wp_contextual_help['widgets']) ) { $help = widgets_help(); diff --git a/wp-admin/plugin-editor.php b/wp-admin/plugin-editor.php index 349516f00..f9bc30ac6 100644 --- a/wp-admin/plugin-editor.php +++ b/wp-admin/plugin-editor.php @@ -81,9 +81,6 @@ default: exit; } - if ( use_codepress() ) - wp_enqueue_script( 'codepress' ); - // List of allowable extensions $editable_extensions = array('php', 'txt', 'text', 'js', 'css', 'html', 'htm', 'xml', 'inc', 'include'); $editable_extensions = (array) apply_filters('editable_extensions', $editable_extensions); diff --git a/wp-admin/theme-editor.php b/wp-admin/theme-editor.php index 58f2f117d..a78f16eb0 100644 --- a/wp-admin/theme-editor.php +++ b/wp-admin/theme-editor.php @@ -25,8 +25,7 @@ if (empty($theme)) { $theme = get_current_theme(); } else { $theme = stripslashes($theme); - } - +} if ( ! isset($themes[$theme]) ) wp_die(__('The requested theme does not exist.')); @@ -75,9 +74,6 @@ break; default: - if ( use_codepress() ) - wp_enqueue_script( 'codepress' ); - require_once('admin-header.php'); update_recently_edited($file);