Ticket #4201: 00000.diff
File 00000.diff, 677 bytes (added by , 6 years ago) |
---|
-
wporg-page-limiter.php
37 37 add_filter( 'bbp_topic_pagination', [ $this, 'bbp_topic_pagination' ], 100 ); 38 38 } 39 39 40 // Pre-query, Override the query to be a 404. 41 public function request( $args ) { 40 /** 41 * Pre-query, Override the query to be a 404. 42 * 43 * @param array $args Configuration arguments. 44 * @return array 45 */ 46 public function request( $args ) { 42 47 if ( isset( $args['paged'] ) && $args['paged'] > self::MAX_PAGES ) { 43 48 $args = array( 44 49 'error' => 404,