Changeset 2587
- Timestamp:
- 02/04/2010 01:46:23 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-forums/bp-forums-templatetags.php
r2580 r2587 29 29 /* Only show stickies if we are viewing a single group forum, otherwise we could end up with hundreds globally */ 30 30 if ( $no_stickies ) 31 $show_stickies = ' no'; // bbPress needs str 'no'31 $show_stickies = 'all'; // bbPress needs str 'no' 32 32 33 33 switch ( $type ) { … … 165 165 $forum_id = false; 166 166 $search_terms = false; 167 $no_stickies = false; 167 168 168 169 /* User filtering */ … … 190 191 if ( $bp->is_directory && !empty( $_GET['fs'] ) ) 191 192 $search_terms = $_GET['fs']; 193 194 /* Don't show stickies on the directory page, otherwise we might end up with 100's */ 195 if ( $bp->is_directory ) 196 $no_stickies = true; 192 197 193 198 $defaults = array( … … 198 203 'per_page' => 20, 199 204 'max' => false, 200 'no_stickies' => false,205 'no_stickies' => $no_stickies, 201 206 'search_terms' => $search_terms 202 207 );
Note: See TracChangeset
for help on using the changeset viewer.