Make WordPress Core

Changeset 40372


Ignore:
Timestamp:
04/03/2017 11:43:00 PM (7 years ago)
Author:
flixos90
Message:

Multisite: Fix wp_get_sites() to return an unlimited amount of sites when passing a falsy limit argument.

Props iandunn for the original patch.
Fixes #39879. See #35791.

File:
1 edited

Legend:

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

    r38943 r40372  
    498498        $args['number'] = $args['limit'];
    499499        $args['limit'] = null;
     500    } elseif ( ! $args['limit'] ) {
     501        $args['number'] = 0;
     502        $args['limit'] = null;
    500503    }
    501504
Note: See TracChangeset for help on using the changeset viewer.