Changeset 4764 for trunk/bp-forums/bp-forums-functions.php
- Timestamp:
- 07/21/2011 02:14:16 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-forums/bp-forums-functions.php
r4709 r4764 81 81 'page' => 1, 82 82 'per_page' => 15, 83 'offset' => false, 84 'number' => false, 83 85 'exclude' => false, 84 86 'show_stickies' => 'all', … … 92 94 switch ( $type ) { 93 95 case 'newest': 94 $query = new BB_Query( 'topic', array( 'forum_id' => $forum_id, 'topic_author_id' => $user_id, 'per_page' => $per_page, 'page' => $page, 'number' => $per_page, 'exclude' => $exclude, 'topic_title' => $filter, 'sticky' => $show_stickies ), 'get_latest_topics' );96 $query = new BB_Query( 'topic', array( 'forum_id' => $forum_id, 'topic_author_id' => $user_id, 'per_page' => $per_page, 'page' => $page, 'number' => $per_page, 'exclude' => $exclude, 'topic_title' => $filter, 'sticky' => $show_stickies, 'offset' => $offset, 'number' => $number ), 'get_latest_topics' ); 95 97 $topics =& $query->results; 96 98 break; … … 491 493 492 494 /** 493 * Retur s the parent forum id for the bbPress abstraction layer495 * Returns the parent forum id for the bbPress abstraction layer 494 496 * 495 497 * @package BuddyPress … … 500 502 function bp_forums_parent_forum_id() { 501 503 return apply_filters( 'bp_forums_parent_forum_id', BP_FORUMS_PARENT_FORUM_ID ); 504 } 505 506 /** 507 * Should sticky topics be broken out of regular topic order on forum directories? 508 * 509 * Defaults to false. Define BP_FORUMS_ENABLE_GLOBAL_DIRECTORY_STICKIES, or filter 510 * bp_forums_enable_global_directory_stickies, to change this behavior. 511 * 512 * @package BuddyPress 513 * @since 1.3 514 * 515 * @return bool True if stickies should be displayed at the top of the global directory, false 516 * otherwise. 517 */ 518 function bp_forums_enable_global_directory_stickies() { 519 return apply_filters( 'bp_forums_enable_global_directory_stickies', defined( 'BP_FORUMS_ENABLE_GLOBAL_DIRECTORY_STICKIES' ) && BP_FORUMS_ENABLE_GLOBAL_DIRECTORY_STICKIES ); 502 520 } 503 521
Note: See TracChangeset
for help on using the changeset viewer.