Ticket #2765: 2765.diff
File 2765.diff, 1.9 KB (added by , 18 years ago) |
---|
-
wp-admin/comment.php
26 26 switch($action) { 27 27 case 'editcomment': 28 28 $title = __('Edit Comment'); 29 $editing = true; 29 if ( user_can_richedit() ) 30 wp_enqueue_script( 'wp_tiny_mce' ); 30 31 require_once ('admin-header.php'); 31 32 32 33 $comment = (int) $_GET['comment']; -
wp-admin/link-add.php
25 25 } 26 26 } 27 27 28 wp_enqueue_script( 'xfn' ); 29 $editing = true; 28 wp_enqueue_script( array('xfn', 'dbx-admin-key?pagenow=link.php') ); 29 if ( current_user_can( 'manage_categories' ) ) 30 wp_enqueue_script( 'ajaxcat' ); 30 31 require('admin-header.php'); 31 32 ?> 32 33 -
wp-admin/link.php
102 102 break; 103 103 104 104 case 'edit' : 105 wp_enqueue_script( 'xfn' ); 106 $editing = true; 105 wp_enqueue_script( array('xfn', 'dbx-admin-key?pagenow=link.php') ); 106 if ( current_user_can( 'manage_categories' ) ) 107 wp_enqueue_script( 'ajaxcat' ); 107 108 $parent_file = 'link-manager.php'; 108 109 $submenu_file = 'link-manager.php'; 109 110 $title = __('Edit Bookmark'); -
wp-admin/dbx-admin-key-js.php
11 11 case 'page-new.php' : 12 12 $man = 'pagemeta'; 13 13 break; 14 case 'link-add.php' :15 14 case 'link.php' : 16 15 $man = 'linkmeta'; 17 16 break; 17 default: 18 exit; 19 break; 18 20 endswitch; 19 21 ?> 20 22 addLoadEvent( function() {var manager = new dbxManager('<?php echo $man; ?>');} );