Changeset 12036 for trunk/wp-admin/admin-ajax.php
- Timestamp:
- 10/15/2009 12:57:16 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r12023 r12036 1396 1396 die( '-1' ); 1397 1397 $thumbnail_id = intval( $_POST['thumbnail_id'] ); 1398 1399 if ( $thumbnail_id == '-1' ) { 1400 delete_post_meta( $post_id, '_thumbnail_id' ); 1401 die( _wp_post_thumbnail_html() ); 1402 } 1403 1398 1404 if ( $thumbnail_id && get_post( $thumbnail_id ) ) { 1399 1405 $thumbnail_html = wp_get_attachment_image( $thumbnail_id, 'thumbnail' );
Note: See TracChangeset
for help on using the changeset viewer.