Reverse logic.

git-svn-id: http://svn.automattic.com/wordpress/trunk@4915 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-02-22 15:30:47 +00:00
parent 4f830dcbeb
commit c8997ffad9
6 changed files with 6 additions and 3 deletions

View File

@ -15,6 +15,7 @@ function dashboard_init() {
}
add_action( 'admin_head', 'index_js' );
wp_enqueue_script('prototype');
wp_enqueue_script('interface');
$title = __('Dashboard');
$parent_file = 'index.php';

View File

@ -4,6 +4,7 @@ $title = __('New Page');
$parent_file = 'post-new.php';
$editing = true;
wp_enqueue_script('prototype');
wp_enqueue_script('interface');
wp_enqueue_script('autosave');
require_once('admin-header.php');
?>

View File

@ -52,6 +52,7 @@ case 'edit':
if($post->post_status == 'draft') {
wp_enqueue_script('prototype');
wp_enqueue_script('interface');
wp_enqueue_script('autosave');
}
require_once('admin-header.php');

View File

@ -4,6 +4,7 @@ $title = __('Create New Post');
$parent_file = 'post-new.php';
$editing = true;
wp_enqueue_script('prototype');
wp_enqueue_script('interface');
wp_enqueue_script('autosave');
require_once ('./admin-header.php');

File diff suppressed because one or more lines are too long

View File

@ -497,9 +497,8 @@ class wp_xmlrpc_server extends IXR_Server {
// If no parent_id was provided make it empty
// so that it will be a top level page (no parent).
if(isset($category["parent_id"])) {
if ( !isset($category["parent_id"]) )
$category["parent_id"] = "";
}
// If no description was provided make it empty.
if(empty($category["description"])) {