Remove unnecessary cap check in wp_newPage(). mw_newPost() will handle it. Props nprasath002. fixes #19981

git-svn-id: https://develop.svn.wordpress.org/trunk@19905 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2012-02-10 20:49:27 +00:00
parent c9d2c7c7d3
commit 4d6b3dd997
1 changed files with 0 additions and 4 deletions

View File

@ -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';