Changeset 7658

Show
Ignore:
Timestamp:
04/14/08 16:49:17 (6 months ago)
Author:
ryan
Message:

Typo fixes. see #6644

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/includes/upgrade.php

    r7645 r7658  
    251251        foreach ($allposts as $post) { 
    252252            // Check to see if it's already been imported 
    253             $cat = $wpdb->get_row( $wpdb->("SELECT * FROM $wpdb->post2cat WHERE post_id = %d AND category_id = %d", $post->ID, $post->post_category) ); 
     253            $cat = $wpdb->get_row( $wpdb->prepare("SELECT * FROM $wpdb->post2cat WHERE post_id = %d AND category_id = %d", $post->ID, $post->post_category) ); 
    254254            if (!$cat && 0 != $post->post_category) { // If there's no result 
    255255                $wpdb->query( $wpdb->prepare("INSERT INTO $wpdb->post2cat 
     
    672672                continue; 
    673673 
    674             $wpdb->query("INSERT INTO $wpdb->term_relationships (object_id, term_taxonomy_id) VALUES ( %d, %d)", $link_id, $tt_id) ); 
     674            $wpdb->query( $wpdb->prepare("INSERT INTO $wpdb->term_relationships (object_id, term_taxonomy_id) VALUES ( %d, %d)", $link_id, $tt_id) ); 
    675675        } 
    676676    }