Skip to:
Content

bbPress.org


Ignore:
Timestamp:
09/16/2011 11:41:13 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Code formatting improvements to 'pre_get_posts' actions. Remove unused $bbp globals.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-common-functions.php

    r3515 r3516  
    337337 */
    338338function bbp_fix_post_author( $data = array(), $postarr = array() ) {
    339     global $bbp;
    340339
    341340    // Post is not being updated or the post_author is already 0, return
     
    657656 */
    658657function bbp_view_query( $view = '', $new_args = '' ) {
    659     global $bbp;
    660658
    661659    if ( !$view = bbp_get_view_id( $view ) )
     
    685683    global $bbp;
    686684
    687     if ( !$views = bbp_get_view_id( $view ) )
     685    $views = bbp_get_view_id( $view );
     686
     687    if ( empty( $views ) )
    688688        return false;
    689689
Note: See TracChangeset for help on using the changeset viewer.