Skip to:
Content

bbPress.org

Changeset 4036


Ignore:
Timestamp:
06/29/2012 02:49:29 PM (12 years ago)
Author:
johnjamesjacoby
Message:

Widgets:

  • Properly hide private and hidden forums and their content from widgets.
  • This was removed accidentally in r4033.
  • Fixes #1868.
File:
1 edited

Legend:

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

    r4033 r4036  
    385385            'posts_per_page' => get_option( '_bbp_forums_per_page', 50 ),
    386386            'orderby'        => 'menu_order',
    387             'order'          => 'ASC'
     387            'order'          => 'ASC',
     388            'meta_query'     => array( bbp_exclude_forum_ids( 'meta_query' ) )
    388389        ) );
    389390
     
    539540            'show_stickies'  => false,
    540541            'order'          => 'DESC',
     542            'meta_query'     => array( bbp_exclude_forum_ids( 'meta_query' ) )
    541543        ) );
    542544
     
    720722            'post_type'      => $post_types,
    721723            'post_status'    => join( ',', array( bbp_get_public_status_id(), bbp_get_closed_status_id() ) ),
    722             'posts_per_page' => $max_shown
     724            'posts_per_page' => $max_shown,
     725            'meta_query'     => array( bbp_exclude_forum_ids( 'meta_query' ) )
    723726        ) );
    724727
Note: See TracChangeset for help on using the changeset viewer.