Changeset 5477 for trunk/src/includes/topics/template.php
- Timestamp:
- 09/08/2014 08:41:02 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/topics/template.php
r5467 r5477 145 145 146 146 // Other defaults 147 $default_topic_search = ! empty( $_REQUEST['ts'] ) ? $_REQUEST['ts'] : false; 147 148 $default_show_stickies = (bool) ( bbp_is_single_forum() || bbp_is_topic_archive() ) && ( false === $default_topic_search ); 148 149 $default_post_parent = bbp_is_single_forum() ? bbp_get_forum_id() : 'any'; … … 164 165 // Only add 's' arg if searching for topics 165 166 // See https://bbpress.trac.wordpress.org/ticket/2607 166 if ( ! empty( $ _REQUEST['ts']) ) {167 $default['s'] = $ _REQUEST['ts'];167 if ( ! empty( $default_topic_search ) ) { 168 $default['s'] = $default_topic_search; 168 169 } 169 170
Note: See TracChangeset
for help on using the changeset viewer.