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:
Andrew Ozz
2009-06-07 01:52:44 +00:00
parent efeffe1d53
commit ed7d206ac1
6 changed files with 41 additions and 10 deletions

View File

@@ -83,8 +83,8 @@ default:
exit;
}
wp_enqueue_script( 'codepress' );
add_action( 'admin_print_footer_scripts', 'codepress_footer_js' );
if ( use_codepress() )
wp_enqueue_script( 'codepress' );
// List of allowable extensions
$editable_extensions = array('php', 'txt', 'text', 'js', 'css', 'html', 'htm', 'xml', 'inc', 'include');