From 8f5df55d269598937f91d3d75e0aa9ed8a02817a Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 23 Oct 2007 16:36:08 +0000 Subject: [PATCH] get_row() not fetch_row(). Props michelwp. fixes #5230 git-svn-id: https://develop.svn.wordpress.org/trunk@6283 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/taxonomy.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 99676ae5f0..5afa205c91 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -1035,7 +1035,7 @@ function wp_insert_term( $term, $taxonomy, $args = array() ) { $term_group = 0; if ( $alias_of ) { - $alias = $wpdb->fetch_row( $wpdb->prepare( "SELECT term_id, term_group FROM $wpdb->terms WHERE slug = %s", $alias_of) ); + $alias = $wpdb->get_row( $wpdb->prepare( "SELECT term_id, term_group FROM $wpdb->terms WHERE slug = %s", $alias_of) ); if ( $alias->term_group ) { // The alias we want is already in a group, so let's use that one. $term_group = $alias->term_group; @@ -1245,7 +1245,7 @@ function wp_update_term( $term, $taxonomy, $args = array() ) { } if ( $alias_of ) { - $alias = $wpdb->fetch_row( $wpdb->prepare( "SELECT term_id, term_group FROM $wpdb->terms WHERE slug = %s", $alias_of) ); + $alias = $wpdb->get_row( $wpdb->prepare( "SELECT term_id, term_group FROM $wpdb->terms WHERE slug = %s", $alias_of) ); if ( $alias->term_group ) { // The alias we want is already in a group, so let's use that one. $term_group = $alias->term_group;