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:
ryan 2012-02-10 20:49:27 +00:00
parent 03a40a476b
commit a856f757db
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';