Make WordPress Core


Ignore:
Timestamp:
09/27/2007 07:34:15 AM (19 years ago)
Author:
markjaquith
Message:

prepare() for wp-includes/ bookmark.php, canonical.php, comment.php, comment-template.php. see #4553

File:
1 edited

Legend:

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

    r6026 r6173  
    44        global $wpdb;
    55
    6         $bookmark_id = (int) $bookmark_id;
    7         $link = $wpdb->get_row("SELECT * FROM $wpdb->links WHERE link_id = '$bookmark_id' LIMIT 1");
     6        $link = $wpdb->get_row($wpdb->prepare("SELECT * FROM $wpdb->links WHERE link_id = %d LIMIT 1", $bookmark_id));
    87        $link->link_category = array_unique( wp_get_object_terms($link_id, 'link_category', 'fields=ids') );
    98
Note: See TracChangeset for help on using the changeset viewer.