Reverse logic.
git-svn-id: http://svn.automattic.com/wordpress/trunk@4915 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4f830dcbeb
commit
c8997ffad9
|
@ -15,6 +15,7 @@ function dashboard_init() {
|
||||||
}
|
}
|
||||||
add_action( 'admin_head', 'index_js' );
|
add_action( 'admin_head', 'index_js' );
|
||||||
wp_enqueue_script('prototype');
|
wp_enqueue_script('prototype');
|
||||||
|
wp_enqueue_script('interface');
|
||||||
|
|
||||||
$title = __('Dashboard');
|
$title = __('Dashboard');
|
||||||
$parent_file = 'index.php';
|
$parent_file = 'index.php';
|
||||||
|
|
|
@ -4,6 +4,7 @@ $title = __('New Page');
|
||||||
$parent_file = 'post-new.php';
|
$parent_file = 'post-new.php';
|
||||||
$editing = true;
|
$editing = true;
|
||||||
wp_enqueue_script('prototype');
|
wp_enqueue_script('prototype');
|
||||||
|
wp_enqueue_script('interface');
|
||||||
wp_enqueue_script('autosave');
|
wp_enqueue_script('autosave');
|
||||||
require_once('admin-header.php');
|
require_once('admin-header.php');
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -52,6 +52,7 @@ case 'edit':
|
||||||
|
|
||||||
if($post->post_status == 'draft') {
|
if($post->post_status == 'draft') {
|
||||||
wp_enqueue_script('prototype');
|
wp_enqueue_script('prototype');
|
||||||
|
wp_enqueue_script('interface');
|
||||||
wp_enqueue_script('autosave');
|
wp_enqueue_script('autosave');
|
||||||
}
|
}
|
||||||
require_once('admin-header.php');
|
require_once('admin-header.php');
|
||||||
|
|
|
@ -4,6 +4,7 @@ $title = __('Create New Post');
|
||||||
$parent_file = 'post-new.php';
|
$parent_file = 'post-new.php';
|
||||||
$editing = true;
|
$editing = true;
|
||||||
wp_enqueue_script('prototype');
|
wp_enqueue_script('prototype');
|
||||||
|
wp_enqueue_script('interface');
|
||||||
wp_enqueue_script('autosave');
|
wp_enqueue_script('autosave');
|
||||||
require_once ('./admin-header.php');
|
require_once ('./admin-header.php');
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -497,9 +497,8 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||||
|
|
||||||
// If no parent_id was provided make it empty
|
// If no parent_id was provided make it empty
|
||||||
// so that it will be a top level page (no parent).
|
// so that it will be a top level page (no parent).
|
||||||
if(isset($category["parent_id"])) {
|
if ( !isset($category["parent_id"]) )
|
||||||
$category["parent_id"] = "";
|
$category["parent_id"] = "";
|
||||||
}
|
|
||||||
|
|
||||||
// If no description was provided make it empty.
|
// If no description was provided make it empty.
|
||||||
if(empty($category["description"])) {
|
if(empty($category["description"])) {
|
||||||
|
|
Loading…
Reference in New Issue