Making WordPress.org

Ticket #4201: 00000.diff

File 00000.diff, 677 bytes (added by jankimoradiya, 6 years ago)
  • wporg-page-limiter.php

     
    3737                add_filter( 'bbp_topic_pagination', [ $this, 'bbp_topic_pagination' ], 100 );
    3838        }
    3939
    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 ) {
    4247                if ( isset( $args['paged'] ) && $args['paged'] > self::MAX_PAGES ) {
    4348                        $args = array(
    4449                                'error' => 404,