Changeset 32800 for trunk/src/wp-includes/class-wp-xmlrpc-server.php
- Timestamp:
- 06/16/2015 08:00:15 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-xmlrpc-server.php
r32733 r32800 3963 3963 do_action( 'xmlrpc_call', 'wp.getPostType' ); 3964 3964 3965 if ( ! post_type_exists( $post_type_name ) )3965 if ( ! post_type_exists( $post_type_name ) ) 3966 3966 return new IXR_Error( 403, __( 'Invalid post type' ) ); 3967 3967 3968 3968 $post_type = get_post_type_object( $post_type_name ); 3969 3969 3970 if ( ! current_user_can( $post_type->cap->edit_posts ) )3970 if ( ! current_user_can( $post_type->cap->edit_posts ) ) 3971 3971 return new IXR_Error( 401, __( 'Sorry, you are not allowed to edit this post type.' ) ); 3972 3972 … … 4020 4020 4021 4021 foreach( $post_types as $post_type ) { 4022 if ( ! current_user_can( $post_type->cap->edit_posts ) )4022 if ( ! current_user_can( $post_type->cap->edit_posts ) ) 4023 4023 continue; 4024 4024
Note: See TracChangeset
for help on using the changeset viewer.