WordPress.org

Make WordPress Core

Ticket #39879: 39879.diff

File 39879.diff, 462 bytes (added by flixos90, 2 years ago)
  • src/wp-includes/ms-deprecated.php

     
    497497        if( is_numeric( $args['limit'] ) ){
    498498                $args['number'] = $args['limit'];
    499499                $args['limit'] = null;
     500        } elseif ( ! $args['limit'] ) {
     501                $args['number'] = 0;
     502                $args['limit'] = null;
    500503        }
    501504
    502505        // Make sure count is disabled.