diff --git src/includes/replies/template.php src/includes/replies/template.php
index b8e9b41..d436a63 100644
|
|
|
function bbp_has_replies( $args = '' ) {
|
| 124 | 124 | /** Defaults **************************************************************/ |
| 125 | 125 | |
| 126 | 126 | // Other defaults |
| 127 | | $default_reply_search = !empty( $_REQUEST['rs'] ) ? $_REQUEST['rs'] : false; |
| 128 | 127 | $default_post_parent = ( bbp_is_single_topic() ) ? bbp_get_topic_id() : 'any'; |
| 129 | 128 | $default_post_type = ( bbp_is_single_topic() && bbp_show_lead_topic() ) ? bbp_get_reply_post_type() : array( bbp_get_topic_post_type(), bbp_get_reply_post_type() ); |
| 130 | 129 | $default_thread_replies = (bool) ( bbp_is_single_topic() && bbp_thread_replies() ); |
| … |
… |
function bbp_has_replies( $args = '' ) {
|
| 139 | 138 | 'order' => 'ASC', // Oldest to newest |
| 140 | 139 | 'hierarchical' => $default_thread_replies, // Hierarchical replies |
| 141 | 140 | 'ignore_sticky_posts' => true, // Stickies not supported |
| 142 | | 's' => $default_reply_search, // Maybe search |
| 143 | 141 | ); |
| 144 | 142 | |
| 145 | 143 | // What are the default allowed statuses (based on user caps) |
diff --git src/includes/topics/template.php src/includes/topics/template.php
index c5fc8fb..803c371 100644
|
|
|
function bbp_has_topics( $args = '' ) {
|
| 143 | 143 | /** Defaults **************************************************************/ |
| 144 | 144 | |
| 145 | 145 | // Other defaults |
| 146 | | $default_topic_search = !empty( $_REQUEST['ts'] ) ? $_REQUEST['ts'] : false; |
| 147 | | $default_show_stickies = (bool) ( bbp_is_single_forum() || bbp_is_topic_archive() ) && ( false === $default_topic_search ); |
| | 146 | $default_show_stickies = (bool) ( bbp_is_single_forum() || bbp_is_topic_archive() ); |
| 148 | 147 | $default_post_parent = bbp_is_single_forum() ? bbp_get_forum_id() : 'any'; |
| 149 | 148 | |
| 150 | 149 | // Default argument array |
| … |
… |
function bbp_has_topics( $args = '' ) {
|
| 157 | 156 | 'order' => 'DESC', // 'ASC', 'DESC' |
| 158 | 157 | 'posts_per_page' => bbp_get_topics_per_page(), // Topics per page |
| 159 | 158 | 'paged' => bbp_get_paged(), // Page Number |
| 160 | | 's' => $default_topic_search, // Topic Search |
| 161 | 159 | 'show_stickies' => $default_show_stickies, // Ignore sticky topics? |
| 162 | 160 | 'max_num_pages' => false, // Maximum number of pages to show |
| 163 | 161 | ); |