WordPress.org

Make WordPress Core

Changeset 19905


Ignore:
Timestamp:
02/10/2012 08:49:27 PM (6 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-xmlrpc-server.php

    r19885 r19905  
    12771277        do_action('xmlrpc_call', 'wp.newPage');
    12781278
    1279         // Make sure the user is allowed to add new pages.
    1280         if ( !current_user_can('publish_pages') )
    1281             return(new IXR_Error(401, __('Sorry, you cannot add new pages.')));
    1282 
    12831279        // Mark this as content for a page.
    12841280        $args[3]["post_type"] = 'page';
Note: See TracChangeset for help on using the changeset viewer.