wp-admin/edit-tags.php 1 location
|
@@ 20-22 (lines=3) @@
|
17 |
|
if ( ! $tax ) |
18 |
|
wp_die( __( 'Invalid taxonomy.' ) ); |
19 |
|
|
20 |
|
if ( ! in_array( $tax->name, get_taxonomies( array( 'show_ui' => true ) ) ) ) { |
21 |
|
wp_die( __( 'Sorry, you are not allowed to manage these items.' ) ); |
22 |
|
} |
23 |
|
|
24 |
|
if ( ! current_user_can( $tax->cap->manage_terms ) ) { |
25 |
|
wp_die( |
wp-admin/edit.php 1 location
|
@@ 15-17 (lines=3) @@
|
12 |
|
if ( ! $typenow ) |
13 |
|
wp_die( __( 'Invalid post type.' ) ); |
14 |
|
|
15 |
|
if ( ! in_array( $typenow, get_post_types( array( 'show_ui' => true ) ) ) ) { |
16 |
|
wp_die( __( 'Sorry, you are not allowed to edit posts in this post type.' ) ); |
17 |
|
} |
18 |
|
|
19 |
|
if ( 'attachment' === $typenow ) { |
20 |
|
if ( wp_redirect( admin_url( 'upload.php' ) ) ) { |
wp-admin/post.php 1 location
|
@@ 112-114 (lines=3) @@
|
109 |
|
if ( ! $post_type_object ) |
110 |
|
wp_die( __( 'Unknown post type.' ) ); |
111 |
|
|
112 |
|
if ( ! in_array( $typenow, get_post_types( array( 'show_ui' => true ) ) ) ) { |
113 |
|
wp_die( __( 'Sorry, you are not allowed to edit posts in this post type.' ) ); |
114 |
|
} |
115 |
|
|
116 |
|
if ( ! current_user_can( 'edit_post', $post_id ) ) |
117 |
|
wp_die( __( 'Sorry, you are not allowed to edit this item.' ) ); |