WordPress.org

Make WordPress Core

Changeset 40372


Ignore:
Timestamp:
04/03/17 23:43:00 (7 months 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.