Changeset 34177
- Timestamp:
- 09/15/2015 10:26:22 AM (9 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit.php
r33861 r34177 12 12 if ( ! $typenow ) 13 13 wp_die( __( 'Invalid post type' ) ); 14 15 if ( ! in_array( $typenow, get_post_types( array( 'show_ui' => true ) ) ) ) { 16 wp_die( __( 'You are not allowed to edit posts in this post type.' ) ); 17 } 14 18 15 19 if ( 'attachment' === $typenow ) { -
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.' ) ); -
trunk/src/wp-includes/link-template.php
r34176 r34177 1229 1229 return; 1230 1230 1231 if ( ! in_array( $post->post_type, get_post_types( array( 'show_ui' => true ) ) ) ) { 1232 return; 1233 } 1234 1231 1235 /** 1232 1236 * Filter the post edit link.
Note: See TracChangeset
for help on using the changeset viewer.