mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-23 23:30:53 +00:00
escape pagenow. Props xknown. fixes #3988 for 2.1
git-svn-id: http://svn.automattic.com/wordpress/branches/2.1@5060 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
041c7d133d
commit
13c289f0a0
@ -2,7 +2,7 @@
|
||||
@header('Content-type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
|
||||
if (!isset($_GET["page"])) require_once('admin.php');
|
||||
if ( $editing ) {
|
||||
wp_enqueue_script( array("dbx-admin-key?pagenow=$pagenow",'admin-custom-fields') );
|
||||
wp_enqueue_script( array('dbx-admin-key?pagenow=' . attribute_escape($pagenow),'admin-custom-fields') );
|
||||
if ( current_user_can('manage_categories') )
|
||||
wp_enqueue_script( 'ajaxcat' );
|
||||
if ( user_can_richedit() )
|
||||
|
Loading…
x
Reference in New Issue
Block a user