WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/24/2012 03:24:31 PM (8 years ago)
Author:
nacin
Message:

Introduce $wpdb->delete(). props justindgivens, scribu. fixes #18948.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/bookmark.php

    r20256 r20287  
    8585    wp_delete_object_term_relationships( $link_id, 'link_category' );
    8686
    87     $wpdb->query( $wpdb->prepare( "DELETE FROM $wpdb->links WHERE link_id = %d", $link_id ) );
     87    $wpdb->delete( $wpdb->links, array( 'link_id' => $link_id ) );
    8888
    8989    do_action( 'deleted_link', $link_id );
Note: See TracChangeset for help on using the changeset viewer.