Changeset 34177 for trunk/src/wp-admin/post.php
- Timestamp:
- 09/15/2015 10:26:22 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/post.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/post.php
r34027 r34177 110 110 wp_die( __( 'Unknown post type.' ) ); 111 111 112 if ( ! in_array( $typenow, get_post_types( array( 'show_ui' => true ) ) ) ) { 113 wp_die( __( 'You are not allowed to edit posts in this post type.' ) ); 114 } 115 112 116 if ( ! current_user_can( 'edit_post', $post_id ) ) 113 117 wp_die( __( 'You are not allowed to edit this item.' ) );
Note: See TracChangeset
for help on using the changeset viewer.