WordPress.org

Make WordPress Core

Changeset 14539


Ignore:
Timestamp:
05/10/2010 09:02:15 AM (11 years ago)
Author:
nacin
Message:

Use correct field name in a query in do_enclose(). fixes #12074, mtdewvirus.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r14522 r14539  
    11791179            $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 . '%') );
    11801180            do_action( 'delete_postmeta', $mid );
    1181             $wpdb->query( $wpdb->prepare("DELETE FROM $wpdb->postmeta WHERE post_id IN(%s)", implode( ',', $mid ) ) );
     1181            $wpdb->query( $wpdb->prepare("DELETE FROM $wpdb->postmeta WHERE meta_id IN(%s)", implode( ',', $mid ) ) );
    11821182            do_action( 'deleted_postmeta', $mid );
    11831183        }
Note: See TracChangeset for help on using the changeset viewer.