Admin includes reorg. see #4334

git-svn-id: http://svn.automattic.com/wordpress/trunk@5542 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2007-05-25 07:16:21 +00:00
parent 92e7d3c3bc
commit 770613e763
24 changed files with 2791 additions and 2726 deletions

View File

@@ -39,7 +39,7 @@ header('Content-type: text/xml; charset=' . get_option('blog_charset'), true);
exit;
}
include_once(ABSPATH . 'wp-admin/admin-functions.php');
include_once(ABSPATH . 'wp-admin/includes/admin.php');
include_once(ABSPATH . WPINC . '/class-IXR.php');
// Turn off all warnings and errors.
@@ -490,10 +490,6 @@ class wp_xmlrpc_server extends IXR_Server {
return(new IXR_Error(401, __("Sorry, you do not have the right to add a category.")));
}
// We need this to make use of the wp_insert_category()
// funciton.
require_once(ABSPATH . "wp-admin/admin-db.php");
// If no slug was provided make it empty so that
// WordPress will generate one.
if(empty($category["slug"])) {