Use correct field name in a query in do_enclose(). fixes #12074, mtdewvirus.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14539 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a03dfef3fd
commit
021bb7d9cc
|
@ -1178,7 +1178,7 @@ function do_enclose( $content, $post_ID ) {
|
|||
if ( !in_array( $link_test, $post_links_temp[0] ) ) { // link no longer in post
|
||||
$mid = $wpdb->get_col( $wpdb->prepare("SELECT meta_id FROM $wpdb->postmeta WHERE post_id = %d AND meta_key = 'enclosure' AND meta_value LIKE (%s)", $post_ID, $link_test . '%') );
|
||||
do_action( 'delete_postmeta', $mid );
|
||||
$wpdb->query( $wpdb->prepare("DELETE FROM $wpdb->postmeta WHERE post_id IN(%s)", implode( ',', $mid ) ) );
|
||||
$wpdb->query( $wpdb->prepare("DELETE FROM $wpdb->postmeta WHERE meta_id IN(%s)", implode( ',', $mid ) ) );
|
||||
do_action( 'deleted_postmeta', $mid );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue