Changeset 3511 for trunk/bp-groups/bp-groups-templatetags.php
- Timestamp:
- 12/04/2010 11:41:28 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-templatetags.php
r3479 r3511 1836 1836 1837 1837 $search_value = __( 'Search anything...', 'buddypress' ); 1838 if ( isset( $_REQUEST['s'] ) &&!empty( $_REQUEST['s'] ) )1839 $search_value = $_REQUEST['s'];1838 if ( !empty( $_REQUEST['s'] ) ) 1839 $search_value = stripslashes( $_REQUEST['s'] ); 1840 1840 1841 1841 ?> 1842 1842 <form action="" method="get" id="search-groups-form"> 1843 <label><input type="text" name="s" id="groups_search" value="<?php echo esc_attr( $search_value) ?>" onfocus="if (this.value == '<?php _e( 'Search anything...', 'buddypress' ) ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e( 'Search anything...', 'buddypress' ) ?>';}" /></label>1843 <label><input type="text" name="s" id="groups_search" value="<?php echo esc_attr( $search_value ) ?>" onfocus="if (this.value == '<?php _e( 'Search anything...', 'buddypress' ) ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e( 'Search anything...', 'buddypress' ) ?>';}" /></label> 1844 1844 <input type="submit" id="groups_search_submit" name="groups_search_submit" value="<?php _e( 'Search', 'buddypress' ) ?>" /> 1845 1845 </form>
Note: See TracChangeset
for help on using the changeset viewer.