Disable codepress. Maintained replacement needed.
git-svn-id: https://develop.svn.wordpress.org/trunk@12005 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a46f2f2b14
commit
e024f20812
|
@ -3506,11 +3506,6 @@ function screen_meta($screen) {
|
||||||
$_wp_contextual_help[$screen] = $help;
|
$_wp_contextual_help[$screen] = $help;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'theme-editor':
|
|
||||||
case 'plugin-editor':
|
|
||||||
$settings = '<p><a id="codepress-on" href="' . $screen . '.php?codepress=on">' . __('Enable syntax highlighting') . '</a><a id="codepress-off" href="' . $screen . '.php?codepress=off">' . __('Disable syntax highlighting') . "</a></p>\n";
|
|
||||||
$show_screen = true;
|
|
||||||
break;
|
|
||||||
case 'widgets':
|
case 'widgets':
|
||||||
if ( !isset($_wp_contextual_help['widgets']) ) {
|
if ( !isset($_wp_contextual_help['widgets']) ) {
|
||||||
$help = widgets_help();
|
$help = widgets_help();
|
||||||
|
|
|
@ -81,9 +81,6 @@ default:
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( use_codepress() )
|
|
||||||
wp_enqueue_script( 'codepress' );
|
|
||||||
|
|
||||||
// List of allowable extensions
|
// List of allowable extensions
|
||||||
$editable_extensions = array('php', 'txt', 'text', 'js', 'css', 'html', 'htm', 'xml', 'inc', 'include');
|
$editable_extensions = array('php', 'txt', 'text', 'js', 'css', 'html', 'htm', 'xml', 'inc', 'include');
|
||||||
$editable_extensions = (array) apply_filters('editable_extensions', $editable_extensions);
|
$editable_extensions = (array) apply_filters('editable_extensions', $editable_extensions);
|
||||||
|
|
|
@ -25,8 +25,7 @@ if (empty($theme)) {
|
||||||
$theme = get_current_theme();
|
$theme = get_current_theme();
|
||||||
} else {
|
} else {
|
||||||
$theme = stripslashes($theme);
|
$theme = stripslashes($theme);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if ( ! isset($themes[$theme]) )
|
if ( ! isset($themes[$theme]) )
|
||||||
wp_die(__('The requested theme does not exist.'));
|
wp_die(__('The requested theme does not exist.'));
|
||||||
|
@ -75,9 +74,6 @@ break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
||||||
if ( use_codepress() )
|
|
||||||
wp_enqueue_script( 'codepress' );
|
|
||||||
|
|
||||||
require_once('admin-header.php');
|
require_once('admin-header.php');
|
||||||
|
|
||||||
update_recently_edited($file);
|
update_recently_edited($file);
|
||||||
|
|
Loading…
Reference in New Issue