Changeset 39756
- Timestamp:
- 01/10/2017 02:40:00 AM (8 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/async-upload.php
r37914 r39756 53 53 $post = get_post( $id ); 54 54 if ( 'attachment' != $post->post_type ) 55 wp_die( __( ' Unknownpost type.' ) );55 wp_die( __( 'Invalid post type.' ) ); 56 56 if ( ! current_user_can( 'edit_post', $id ) ) 57 57 wp_die( __( 'Sorry, you are not allowed to edit this item.' ) ); -
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 ) ) -
trunk/src/wp-includes/class-wp-customize-nav-menus.php
r39558 r39756 788 788 public function insert_auto_draft_post( $postarr ) { 789 789 if ( ! isset( $postarr['post_type'] ) || ! post_type_exists( $postarr['post_type'] ) ) { 790 return new WP_Error( 'unknown_post_type', __( ' Unknown post type' ) );790 return new WP_Error( 'unknown_post_type', __( 'Invalid post type.' ) ); 791 791 } 792 792 if ( empty( $postarr['post_title'] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.