WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/17/2016 11:29:11 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Multisite: Correct default values for orderby and order in WP_Site_Query::__construct().

Add a unit test.

Props ramiy, SergeyBiryukov.
See #35791.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-site-query.php

    r38008 r38085  
    156156            'offset'            => '',
    157157            'no_found_rows'     => true,
    158             'orderby'           => 'ids',
    159             'order'             => 'DESC',
     158            'orderby'           => 'id',
     159            'order'             => 'ASC',
    160160            'network_id'        => 0,
    161161            'network__in'       => '',
Note: See TracChangeset for help on using the changeset viewer.