Changeset 5467
- Timestamp:
- 09/08/2014 03:05:19 PM (11 years ago)
- Location:
- trunk/src/includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/replies/template.php
r5466 r5467 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() ); … … 140 139 'hierarchical' => $default_thread_replies, // Hierarchical replies 141 140 'ignore_sticky_posts' => true, // Stickies not supported 142 's' => $default_reply_search, // Maybe search143 141 ); 142 143 // Only add 's' arg if searching for replies 144 // See https://bbpress.trac.wordpress.org/ticket/2607 145 if ( ! empty( $_REQUEST['rs'] ) ) { 146 $default['s'] = $_REQUEST['rs']; 147 } 144 148 145 149 // What are the default allowed statuses (based on user caps) -
trunk/src/includes/topics/template.php
r5466 r5467 145 145 146 146 // Other defaults 147 $default_topic_search = ! empty( $_REQUEST['ts'] ) ? $_REQUEST['ts'] : false;148 147 $default_show_stickies = (bool) ( bbp_is_single_forum() || bbp_is_topic_archive() ) && ( false === $default_topic_search ); 149 148 $default_post_parent = bbp_is_single_forum() ? bbp_get_forum_id() : 'any'; … … 159 158 'posts_per_page' => bbp_get_topics_per_page(), // Topics per page 160 159 'paged' => bbp_get_paged(), // Page Number 161 's' => $default_topic_search, // Topic Search162 160 'show_stickies' => $default_show_stickies, // Ignore sticky topics? 163 161 'max_num_pages' => false, // Maximum number of pages to show 164 162 ); 163 164 // Only add 's' arg if searching for topics 165 // See https://bbpress.trac.wordpress.org/ticket/2607 166 if ( ! empty( $_REQUEST['ts'] ) ) { 167 $default['s'] = $_REQUEST['ts']; 168 } 165 169 166 170 // What are the default allowed statuses (based on user caps)
Note: See TracChangeset
for help on using the changeset viewer.