Changeset 39756 for trunk/src/wp-admin/async-upload.php
- Timestamp:
- 01/10/2017 02:40:00 AM (8 years ago)
- File:
-
- 1 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.' ) );
Note: See TracChangeset
for help on using the changeset viewer.