WordPress.org

Make WordPress Core

Changeset 38819


Ignore:
Timestamp:
10/19/2016 05:10:22 AM (4 years ago)
Author:
jeremyfelt
Message:

Multisite: Use correct types in get_sites() during network upgrade.

spam, deleted, and archived query args should be integers, not strings.

Props ocean90.
See #37823.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network/upgrade.php

    r38721 r38819  
    5454
    5555        $site_ids = get_sites( array(
    56             'spam'       => '0',
    57             'deleted'    => '0',
    58             'archived'   => '0',
     56            'spam'       => 0,
     57            'deleted'    => 0,
     58            'archived'   => 0,
    5959            'network_id' => get_current_network_id(),
    6060            'number'     => 5,
Note: See TracChangeset for help on using the changeset viewer.