Remove unnecessary cap check in wp_newPage(). mw_newPost() will handle it. Props nprasath002. fixes #19981
git-svn-id: http://svn.automattic.com/wordpress/trunk@19905 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
03a40a476b
commit
a856f757db
|
@ -1276,10 +1276,6 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||||
|
|
||||||
do_action('xmlrpc_call', 'wp.newPage');
|
do_action('xmlrpc_call', 'wp.newPage');
|
||||||
|
|
||||||
// Make sure the user is allowed to add new pages.
|
|
||||||
if ( !current_user_can('publish_pages') )
|
|
||||||
return(new IXR_Error(401, __('Sorry, you cannot add new pages.')));
|
|
||||||
|
|
||||||
// Mark this as content for a page.
|
// Mark this as content for a page.
|
||||||
$args[3]["post_type"] = 'page';
|
$args[3]["post_type"] = 'page';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue