Script loader fixes from mdawaffe. fixes #2765
git-svn-id: https://develop.svn.wordpress.org/trunk@3830 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
61e7840ff2
commit
077fd0a135
@ -26,7 +26,8 @@ if ( isset( $_POST['deletecomment'] ) )
|
|||||||
switch($action) {
|
switch($action) {
|
||||||
case 'editcomment':
|
case 'editcomment':
|
||||||
$title = __('Edit Comment');
|
$title = __('Edit Comment');
|
||||||
$editing = true;
|
if ( user_can_richedit() )
|
||||||
|
wp_enqueue_script( 'wp_tiny_mce' );
|
||||||
require_once ('admin-header.php');
|
require_once ('admin-header.php');
|
||||||
|
|
||||||
$comment = (int) $_GET['comment'];
|
$comment = (int) $_GET['comment'];
|
||||||
|
@ -11,10 +11,12 @@ switch ( $_GET['pagenow'] ) :
|
|||||||
case 'page-new.php' :
|
case 'page-new.php' :
|
||||||
$man = 'pagemeta';
|
$man = 'pagemeta';
|
||||||
break;
|
break;
|
||||||
case 'link-add.php' :
|
|
||||||
case 'link.php' :
|
case 'link.php' :
|
||||||
$man = 'linkmeta';
|
$man = 'linkmeta';
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
exit;
|
||||||
|
break;
|
||||||
endswitch;
|
endswitch;
|
||||||
?>
|
?>
|
||||||
addLoadEvent( function() {var manager = new dbxManager('<?php echo $man; ?>');} );
|
addLoadEvent( function() {var manager = new dbxManager('<?php echo $man; ?>');} );
|
||||||
|
@ -25,8 +25,9 @@ for ($i=0; $i<count($wpvarstoreset); $i += 1) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
wp_enqueue_script( 'xfn' );
|
wp_enqueue_script( array('xfn', 'dbx-admin-key?pagenow=link.php') );
|
||||||
$editing = true;
|
if ( current_user_can( 'manage_categories' ) )
|
||||||
|
wp_enqueue_script( 'ajaxcat' );
|
||||||
require('admin-header.php');
|
require('admin-header.php');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
@ -102,8 +102,9 @@ switch ($action) {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'edit' :
|
case 'edit' :
|
||||||
wp_enqueue_script( 'xfn' );
|
wp_enqueue_script( array('xfn', 'dbx-admin-key?pagenow=link.php') );
|
||||||
$editing = true;
|
if ( current_user_can( 'manage_categories' ) )
|
||||||
|
wp_enqueue_script( 'ajaxcat' );
|
||||||
$parent_file = 'link-manager.php';
|
$parent_file = 'link-manager.php';
|
||||||
$submenu_file = 'link-manager.php';
|
$submenu_file = 'link-manager.php';
|
||||||
$title = __('Edit Bookmark');
|
$title = __('Edit Bookmark');
|
||||||
|
Loading…
Reference in New Issue
Block a user