get_row() not fetch_row(). Props michelwp. fixes #5230
git-svn-id: https://develop.svn.wordpress.org/trunk@6283 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5ac19bfa84
commit
8f5df55d26
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user