WordPress.org

Make WordPress Core

Ticket #24958: 24958.diff

File 24958.diff, 602 bytes (added by nacin, 5 years ago)
  • src/wp-includes/revision.php

     
    372372        if ( ! $post || empty( $post->ID ) )
    373373                return array();
    374374
    375         $defaults = array( 'order' => 'DESC', 'orderby' => 'date', 'check_enabled' => true );
     375        $defaults = array( 'order' => 'DESC', 'orderby' => 'date', 'check_enabled' => true, '', 'posts_per_page' => 1000 );
    376376        $args = wp_parse_args( $args, $defaults );
    377377
    378378        if ( $args['check_enabled'] && ! wp_revisions_enabled( $post ) )