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:
@@ -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"])) {
|
||||
|
||||
Reference in New Issue
Block a user