Changeset 33861
- Timestamp:
- 09/02/2015 06:14:14 PM (9 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit.php
r33734 r33861 31 31 wp_die( __( 'Invalid post type' ) ); 32 32 33 if ( ! current_user_can( $post_type_object->cap->edit_posts ) ) 34 wp_die( __( 'Cheatin’ uh?' ), 403 ); 33 if ( ! current_user_can( $post_type_object->cap->edit_posts ) ) { 34 wp_die( 35 '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . 36 '<p>' . __( 'You are not allowed to edit posts in this post type.' ) . '</p>', 37 403 38 ); 39 } 35 40 36 41 $wp_list_table = _get_list_table('WP_Posts_List_Table'); -
trunk/src/wp-includes/class-wp-xmlrpc-server.php
r33734 r33861 1734 1734 1735 1735 if ( ! current_user_can( $post_type->cap->edit_posts ) ) 1736 return new IXR_Error( 401, __( ' Sorry, you are not allowed to edit posts in this post type' ));1736 return new IXR_Error( 401, __( 'You are not allowed to edit posts in this post type.' )); 1737 1737 1738 1738 $query['post_type'] = $post_type->name;
Note: See TracChangeset
for help on using the changeset viewer.