mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
Allow CodePress to be disabled from Screen Options, see #10027
git-svn-id: https://develop.svn.wordpress.org/trunk@11530 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -77,8 +77,9 @@ default:
|
||||
if ( !current_user_can('edit_themes') )
|
||||
wp_die('<p>'.__('You do not have sufficient permissions to edit themes for this blog.').'</p>');
|
||||
|
||||
wp_enqueue_script( 'codepress' );
|
||||
add_action( 'admin_print_footer_scripts', 'codepress_footer_js' );
|
||||
if ( use_codepress() )
|
||||
wp_enqueue_script( 'codepress' );
|
||||
|
||||
require_once('admin-header.php');
|
||||
|
||||
update_recently_edited($file);
|
||||
|
||||
Reference in New Issue
Block a user