Ticket #3156: 3156.02.patch
File 3156.02.patch, 1.2 KB (added by , 14 years ago) |
---|
-
buddypress/bp-themes/bp-default/_inc/ajax.php
4 4 * 5 5 * All of these functions enhance the responsiveness of the user interface in the default 6 6 * theme by adding AJAX functionality. 7 *8 * By default your child theme will inherit this AJAX functionality. You can however create9 * your own _inc/ajax.php file and add/remove AJAX functionality as you see fit.10 7 */ 11 8 12 9 /*** … … 53 50 if ( !empty( $_POST['page'] ) && '-1' != $_POST['page'] ) 54 51 $qs[] = 'page=' . $_POST['page']; 55 52 56 $object_search_text = bp_get_search_default_text( $object ); 57 if ( !empty( $_POST['search_terms'] ) && $object_search_text != $_POST['search_terms'] && 'false' != $_POST['search_terms'] && 'undefined' != $_POST['search_terms'] ) 53 $object_search_text = bp_get_search_default_text( $object ); 54 if ( !empty( $_POST['search_terms'] ) && $object_search_text != $_POST['search_terms'] && 'false' != $_POST['search_terms'] && 'undefined' != $_POST['search_terms'] ) 58 55 $qs[] = 'search_terms=' . $_POST['search_terms']; 59 56 60 57 /* Now pass the querystring to override default values. */