Changeset 45583 for trunk/src/wp-admin/async-upload.php
- Timestamp:
- 07/01/2019 12:50:14 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/async-upload.php
r44331 r45583 40 40 41 41 // just fetch the detail form for that attachment 42 if ( isset( $_REQUEST['attachment_id'] ) && ( $id = intval( $_REQUEST['attachment_id'] ) ) && $_REQUEST['fetch'] ) { 42 if ( isset( $_REQUEST['attachment_id'] ) && intval( $_REQUEST['attachment_id'] ) && $_REQUEST['fetch'] ) { 43 $id = intval( $_REQUEST['attachment_id'] ); 43 44 $post = get_post( $id ); 44 45 if ( 'attachment' != $post->post_type ) { … … 51 52 switch ( $_REQUEST['fetch'] ) { 52 53 case 3: 53 if ( $thumb_url = wp_get_attachment_image_src( $id, 'thumbnail', true ) ) { 54 $thumb_url = wp_get_attachment_image_src( $id, 'thumbnail', true ); 55 if ( $thumb_url ) { 54 56 echo '<img class="pinkynail" src="' . esc_url( $thumb_url[0] ) . '" alt="" />'; 55 57 }
Note: See TracChangeset
for help on using the changeset viewer.