Skip to:
Content

bbPress.org


Ignore:
Timestamp:
09/10/2011 10:27:19 PM (13 years ago)
Author:
johnjamesjacoby
Message:

API adjustments:

  • Refactor _status_ vars into callable functions.
  • Audit usage of $bbp global.
  • Perform get_class() checks on extensions to avoid errors if global $bbp is overloaded.
  • Bump DB version to 175.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-core-widgets.php

    r3491 r3505  
    530530     */
    531531    function widget( $args, $instance ) {
    532         global $bbp;
    533532
    534533        extract( $args );
     
    727726     */
    728727    function widget( $args, $instance ) {
    729         global $bbp;
    730728
    731729        extract( $args );
     
    737735        // Query defaults
    738736        $replies_query = array(
    739             'post_status'    => join( ',', array( 'publish', $bbp->closed_status_id ) ),
     737            'post_status'    => join( ',', array( bbp_get_public_status_id(), bbp_get_closed_status_id() ) ),
    740738            'posts_per_page' => $max_shown,
    741739            'order'          => 'DESC'
Note: See TracChangeset for help on using the changeset viewer.