Changeset 39756 for trunk/src/wp-admin/post.php
- Timestamp:
- 01/10/2017 02:40:00 AM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/post.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/post.php
r37914 r39756 108 108 109 109 if ( ! $post_type_object ) 110 wp_die( __( ' Unknownpost type.' ) );110 wp_die( __( 'Invalid post type.' ) ); 111 111 112 112 if ( ! in_array( $typenow, get_post_types( array( 'show_ui' => true ) ) ) ) { … … 209 209 210 210 if ( ! $post_type_object ) 211 wp_die( __( ' Unknownpost type.' ) );211 wp_die( __( 'Invalid post type.' ) ); 212 212 213 213 if ( ! current_user_can( 'delete_post', $post_id ) ) … … 232 232 233 233 if ( ! $post_type_object ) 234 wp_die( __( ' Unknownpost type.' ) );234 wp_die( __( 'Invalid post type.' ) ); 235 235 236 236 if ( ! current_user_can( 'delete_post', $post_id ) ) … … 250 250 251 251 if ( ! $post_type_object ) 252 wp_die( __( ' Unknownpost type.' ) );252 wp_die( __( 'Invalid post type.' ) ); 253 253 254 254 if ( ! current_user_can( 'delete_post', $post_id ) )
Note: See TracChangeset
for help on using the changeset viewer.