Changeset 19905
- Timestamp:
- 02/10/2012 08:49:27 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-xmlrpc-server.php
r19885 r19905 1277 1277 do_action('xmlrpc_call', 'wp.newPage'); 1278 1278 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 1283 1279 // Mark this as content for a page. 1284 1280 $args[3]["post_type"] = 'page';
Note: See TracChangeset
for help on using the changeset viewer.