Changeset 49108 for trunk/src/wp-admin/async-upload.php
- Timestamp:
- 10/08/2020 09:13:57 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/async-upload.php
r48128 r49108 40 40 41 41 // Just fetch the detail form for that attachment. 42 if ( isset( $_REQUEST['attachment_id'] ) && intval( $_REQUEST['attachment_id'] )&& $_REQUEST['fetch'] ) {43 $id = intval( $_REQUEST['attachment_id'] );42 if ( isset( $_REQUEST['attachment_id'] ) && (int) $_REQUEST['attachment_id'] && $_REQUEST['fetch'] ) { 43 $id = (int) $_REQUEST['attachment_id']; 44 44 $post = get_post( $id ); 45 45 if ( 'attachment' !== $post->post_type ) {
Note: See TracChangeset
for help on using the changeset viewer.