Making WordPress.org

Changeset 7558


Ignore:
Timestamp:
07/31/2018 06:05:08 AM (8 years ago)
Author:
tellyworth
Message:

Gutenberg: prevent unbounded query so the category block works.

Props @noisysocks
See #3703

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/gutenberg/functions.php

    r7556 r7558  
    4343                                                return Promise.resolve( options.data ); // This works in enough cases to be the default return value.
    4444                                        }
     45                                        options.path = options.path.replace( "per_page=-1", "per_page=10" );
    4546
    4647                                        return next( options );
Note: See TracChangeset for help on using the changeset viewer.