Disable codepress for 2.8.1

git-svn-id: http://svn.automattic.com/wordpress/branches/2.8@11673 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-06-29 21:25:53 +00:00
parent 796f7392b6
commit c23720b30f
3 changed files with 1 additions and 13 deletions

View File

@ -3475,11 +3475,6 @@ function screen_meta($screen) {
$_wp_contextual_help[$screen] = $help;
}
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':
if ( !isset($_wp_contextual_help['widgets']) ) {
$help = widgets_help();

View File

@ -83,9 +83,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);

View File

@ -22,8 +22,7 @@ if (empty($theme)) {
$theme = get_current_theme();
} else {
$theme = stripslashes($theme);
}
}
if ( ! isset($themes[$theme]) )
wp_die(__('The requested theme does not exist.'));
@ -77,9 +76,6 @@ default:
if ( !current_user_can('edit_themes') )
wp_die('<p>'.__('You do not have sufficient permissions to edit themes for this blog.').'</p>');
if ( use_codepress() )
wp_enqueue_script( 'codepress' );
require_once('admin-header.php');
update_recently_edited($file);