Changeset 5467 for trunk/src/includes/replies/template.php
- Timestamp:
- 09/08/2014 03:05:19 PM (10 years ago)
- File:
-
- 1 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)
Note: See TracChangeset
for help on using the changeset viewer.