Changeset 11026
- Timestamp:
- 06/11/2021 05:48:08 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/searchform.php
r11025 r11026 17 17 <label for="s" class="screen-reader-text"><?php _ex( 'Search for:', 'label', 'wporg-forums' ); ?></label> 18 18 <?php 19 $tab = null; 19 $placeholder = _x( 'Search forums', 'placeholder', 'wporg-forums' ); 20 $project = false; 21 $tab = 'support'; 22 20 23 if ( in_array( current_action(), [ 'bbp_template_before_pagination_loop', 'wporg_compat_before_single_view' ] ) ) { 21 24 $placeholder = _x( 'Search this forum', 'placeholder', 'wporg-forums' ); … … 25 28 } elseif ( is_front_page() ) { 26 29 $placeholder = _x( 'Search documentation', 'placeholder', 'wporg-forums' ); 27 $project = null;28 30 $tab = 'docs'; 29 31 } elseif ( is_search() || bbp_is_search() ) { 30 if ( isset( $_GET['tab'] ) ) {32 if ( !empty( $_GET['tab'] ) ) { 31 33 $tab = $_GET['tab']; 32 34 $project = $_GET[ $_GET['tab'] ]; 33 35 } 34 } else {35 $placeholder = _x( 'Search forums', 'placeholder', 'wporg-forums' );36 $project = null;37 $tab = 'support';38 36 } 39 37 ?>
Note: See TracChangeset
for help on using the changeset viewer.