Changeset 28712 for trunk/src/wp-includes/post.php
- Timestamp:
- 06/10/2014 12:43:32 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r28677 r28712 4797 4797 if ( ! empty($meta['thumb']) ) { 4798 4798 // Don't delete the thumb if another attachment uses it 4799 if (! $wpdb->get_row( $wpdb->prepare( "SELECT meta_id FROM $wpdb->postmeta WHERE meta_key = '_wp_attachment_metadata' AND meta_value LIKE %s AND post_id <> %d", '%' . $ meta['thumb']. '%', $post_id)) ) {4799 if (! $wpdb->get_row( $wpdb->prepare( "SELECT meta_id FROM $wpdb->postmeta WHERE meta_key = '_wp_attachment_metadata' AND meta_value LIKE %s AND post_id <> %d", '%' . $wpdb->esc_like( $meta['thumb'] ) . '%', $post_id)) ) { 4800 4800 $thumbfile = str_replace(basename($file), $meta['thumb'], $file); 4801 4801 /** This filter is documented in wp-admin/custom-header.php */
Note: See TracChangeset
for help on using the changeset viewer.