Make WordPress Core

Changeset 6283


Ignore:
Timestamp:
10/23/2007 04:36:08 PM (18 years ago)
Author:
ryan
Message:

get_row() not fetch_row(). Props michelwp. fixes #5230

File:
1 edited

Legend:

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

    r6282 r6283  
    10361036    $term_group = 0;
    10371037    if ( $alias_of ) {
    1038         $alias = $wpdb->fetch_row( $wpdb->prepare( "SELECT term_id, term_group FROM $wpdb->terms WHERE slug = %s", $alias_of) );
     1038        $alias = $wpdb->get_row( $wpdb->prepare( "SELECT term_id, term_group FROM $wpdb->terms WHERE slug = %s", $alias_of) );
    10391039        if ( $alias->term_group ) {
    10401040            // The alias we want is already in a group, so let's use that one.
     
    12461246
    12471247    if ( $alias_of ) {
    1248         $alias = $wpdb->fetch_row( $wpdb->prepare( "SELECT term_id, term_group FROM $wpdb->terms WHERE slug = %s", $alias_of) );
     1248        $alias = $wpdb->get_row( $wpdb->prepare( "SELECT term_id, term_group FROM $wpdb->terms WHERE slug = %s", $alias_of) );
    12491249        if ( $alias->term_group ) {
    12501250            // The alias we want is already in a group, so let's use that one.
Note: See TracChangeset for help on using the changeset viewer.