Ticket #6770: 6770.01.patch
File 6770.01.patch, 2.5 KB (added by , 9 years ago) |
---|
-
src/bp-groups/bp-groups-template.php
3631 3631 * @since 1.0.0 3632 3632 */ 3633 3633 function bp_group_hidden_fields() { 3634 if ( isset( $_REQUEST['s'] ) ) { 3635 echo '<input type="hidden" id="search_terms" value="' . esc_attr( $_REQUEST['s'] ) . '" name="search_terms" />'; 3634 $query_arg = bp_core_get_component_search_query_arg( 'groups' ); 3635 3636 if ( isset( $_REQUEST[ $query_arg ] ) ) { 3637 echo '<input type="hidden" id="search_terms" value="' . esc_attr( $_REQUEST[ $query_arg ] ) . '" name="search_terms" />'; 3636 3638 } 3637 3639 3638 3640 if ( isset( $_REQUEST['letter'] ) ) { -
src/bp-members/bp-members-template.php
1313 1313 * Output hidden input for preserving member search params on form submit. 1314 1314 */ 1315 1315 function bp_member_hidden_fields() { 1316 if ( isset( $_REQUEST['s'] ) ) 1317 echo '<input type="hidden" id="search_terms" value="' . esc_attr( $_REQUEST['s'] ) . '" name="search_terms" />'; 1316 $query_arg = bp_core_get_component_search_query_arg( 'members' ); 1317 1318 if ( isset( $_REQUEST[ $query_arg ] ) ) { 1319 echo '<input type="hidden" id="search_terms" value="' . esc_attr( $_REQUEST[ $query_arg ] ) . '" name="search_terms" />'; 1320 } 1318 1321 1319 if ( isset( $_REQUEST['letter'] ) ) 1322 if ( isset( $_REQUEST['letter'] ) ) { 1320 1323 echo '<input type="hidden" id="selected_letter" value="' . esc_attr( $_REQUEST['letter'] ) . '" name="selected_letter" />'; 1324 } 1321 1325 1322 if ( isset( $_REQUEST['members_search'] ) ) 1326 if ( isset( $_REQUEST['members_search'] ) ) { 1323 1327 echo '<input type="hidden" id="search_terms" value="' . esc_attr( $_REQUEST['members_search'] ) . '" name="search_terms" />'; 1328 } 1324 1329 } 1325 1330 1326 1331 /** -
src/bp-xprofile/bp-xprofile-filters.php
367 367 368 368 // Less than 5 spaces. 369 369 } else { 370 $search_url = add_query_arg( array( 's' => urlencode( $value ) ), bp_get_members_directory_permalink() ); 370 $query_arg = bp_core_get_component_search_query_arg( 'members' ); 371 $search_url = add_query_arg( array( $query_arg => urlencode( $value ) ), bp_get_members_directory_permalink() ); 371 372 $new_values[] = '<a href="' . esc_url( $search_url ) . '" rel="nofollow">' . $value . '</a>'; 372 373 } 373 374 }