WordPress.org

Make WordPress Core

Ticket #28922: 28922.diff

File 28922.diff, 581 bytes (added by wonderboymusic, 5 years ago)
  • src/wp-includes/taxonomy-functions.php

     
    32743274        if ( empty( $ids ) )
    32753275                return false;
    32763276
    3277         $terms = wp_get_object_terms($ids, $taxonomies, array('fields' => 'all_with_object_id'));
     3277        $terms = wp_get_object_terms( $ids, $taxonomies, array(
     3278                'fields' => 'all_with_object_id',
     3279                'orderby' => 'none'
     3280        ) );
    32783281
    32793282        $object_terms = array();
    32803283        foreach ( (array) $terms as $term )