Making WordPress.org


Ignore:
Timestamp:
09/29/2020 03:46:44 AM (3 years ago)
Author:
dd32
Message:

bbPress.org: Avoid a PHP Notice on https://bbpress.org/plugins/.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bbpress-org/page-plugins.php

    r6363 r10307  
    55                <?php
    66                    $current_page = isset( $_GET['ppage'] ) ? absint( $_GET['ppage'] ) : 1;
    7                     $plugins  = bb_base_get_plugins( $current_page, $_GET['ps'], 'bbpress' );
    8                     $from_num = intval( ( (int) $plugins->info['page'] - 1 ) * 10 ) + 1;
    9                     $to_num   = ( $from_num + 9 > (int) $plugins->info['results'] ) ? $plugins->info['results'] : $from_num + 9;
     7                    $search       = isset( $_GET['ps'] ) ? $_GET['ps'] : false;
     8                    $plugins      = bb_base_get_plugins( $current_page, $search, 'bbpress' );
     9                    $from_num     = intval( ( (int) $plugins->info['page'] - 1 ) * 10 ) + 1;
     10                    $to_num       = ( $from_num + 9 > (int) $plugins->info['results'] ) ? $plugins->info['results'] : $from_num + 9;
    1011                ?>
    1112
Note: See TracChangeset for help on using the changeset viewer.