2608 | | 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'].'%', $postid)) ) { |
2609 | | $thumbfile = str_replace(basename($file), $meta['thumb'], $file); |
| 2608 | 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['sizes']['thumbnail']['file'].'%', $postid)) ) { |
| 2609 | $thumbfile = str_replace(basename($file), $meta['sizes']['thumbnail']['file'], $file); |