mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 18:13:00 +01:00
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:
parent
c9d2c7c7d3
commit
4d6b3dd997
@ -1276,10 +1276,6 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
|
||||
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.
|
||||
$args[3]["post_type"] = 'page';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user