escape pagenow. Props xknown. fixes #3988 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@5059 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
611b037efa
commit
1e60e0df9a
|
@ -2,7 +2,7 @@
|
||||||
@header('Content-type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
|
@header('Content-type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
|
||||||
if (!isset($_GET["page"])) require_once('admin.php');
|
if (!isset($_GET["page"])) require_once('admin.php');
|
||||||
if ( $editing ) {
|
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') )
|
if ( current_user_can('manage_categories') )
|
||||||
wp_enqueue_script( 'ajaxcat' );
|
wp_enqueue_script( 'ajaxcat' );
|
||||||
if ( user_can_richedit() )
|
if ( user_can_richedit() )
|
||||||
|
|
Loading…
Reference in New Issue