Making WordPress.org

Changeset 645


Ignore:
Timestamp:
05/29/2014 10:09:55 PM (11 years ago)
Author:
johnjamesjacoby
Message:

BuddyPress.org: Use the new bb_base_get_plugins() function to avoid fatal errors from codex sites. More to do here to correct the actual problem; this just stop the fatals.

File:
1 edited

Legend:

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

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