WordPress.org

Make WordPress Core

Changeset 32064


Ignore:
Timestamp:
04/07/2015 04:13:04 AM (4 years ago)
Author:
jeremyfelt
Message:

Avoid an unexpected object error when syncing global terms

Pass the expected single value, rather than object, when recursively calling global_terms().

Props hauvong.

See #31914, Fixes #31149.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ms-functions.php

    r31514 r32064  
    18021802        }
    18031803    } elseif ( $global_id != $term_id ) {
    1804         $local_id = $wpdb->get_row( $wpdb->prepare( "SELECT term_id FROM $wpdb->terms WHERE term_id = %d", $global_id ) );
     1804        $local_id = $wpdb->get_var( $wpdb->prepare( "SELECT term_id FROM $wpdb->terms WHERE term_id = %d", $global_id ) );
    18051805        if ( null != $local_id ) {
    18061806            global_terms( $local_id );
Note: See TracChangeset for help on using the changeset viewer.