Changeset 16388 for trunk/wp-admin/admin-ajax.php
- Timestamp:
- 11/15/2010 05:59:25 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r16371 r16388 1421 1421 } 1422 1422 1423 if ( $thumbnail_id && get_post( $thumbnail_id ) ) { 1424 $thumbnail_html = wp_get_attachment_image( $thumbnail_id, 'thumbnail' ); 1425 if ( !empty( $thumbnail_html ) ) { 1426 update_post_meta( $post_ID, '_thumbnail_id', $thumbnail_id ); 1427 die( _wp_post_thumbnail_html( $thumbnail_id ) ); 1428 } 1429 } 1423 if ( set_post_thumbnail( $post_ID, $thumbnail_id ) ) 1424 die( _wp_post_thumbnail_html( $thumbnail_id ) ); 1430 1425 die( '0' ); 1431 1426 break;
Note: See TracChangeset
for help on using the changeset viewer.