Ticket #2089: 2089.patch
File 2089.patch, 3.0 KB (added by , 8 years ago) |
---|
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php
1322 1322 $post_types = get_parsed_post_types(); 1323 1323 $taxonomies = array( 'wp-parser-since', 'wp-parser-package', 'wp-parser-source-file' ); 1324 1324 1325 return ! is_search() && ( is_singular( $post_types ) || is_post_type_archive( $post_types ) || is_tax( $taxonomies ) || get_query_var( 'is_handbook' ) );1325 return ! ( is_search() || is_404() ) && ( is_singular( $post_types ) || is_post_type_archive( $post_types ) || is_tax( $taxonomies ) || get_query_var( 'is_handbook' ) ); 1326 1326 } 1327 1327 1328 1328 /** -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/js/autocomplete.js
11 11 return; 12 12 } 13 13 14 var form = $( '.searchform ' ).not(".searchform-handbook");14 var form = $( '.searchform-filtered'); 15 15 if ( ! form.length ) { 16 16 return; 17 17 } -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/searchform.php
5 5 * @package wporg-developer 6 6 */ 7 7 ?> 8 <div class="search-section section clear <?php if ( ! ( is_page( 'reference' ) || is_search() ) ) { echo 'hide-if-js'; } ?>">8 <div class="search-section section clear <?php if ( ! ( is_page( 'reference' ) || is_search() || is_404() ) ) { echo 'hide-if-js'; } ?>"> 9 9 10 10 <?php if ( is_search() ) { ?> 11 11 … … 37 37 $is_handbook = get_query_var( 'is_handbook' ); 38 38 $search_url = get_query_var( 'current_handbook_home_url' ); 39 39 $search_url = $search_url ? $search_url : home_url( '/' ); 40 $form_class = $is_handbook ? ' searchform-handbook' : ''; 40 $filters = ! ( $is_handbook || is_404() ); 41 $form_class = ( $filters ) ? ' searchform-filtered' : ''; 41 42 ?> 42 43 43 44 <form role="search" method="get" class="searchform<?php echo esc_attr( $form_class ); ?>" action="<?php echo esc_url( $search_url ); ?>"> … … 49 50 <input type="submit" class="shiny-blue search-submit" value="<?php echo esc_attr_x( 'Search', 'submit button', 'wporg' ); ?>"> 50 51 </div> 51 52 52 <?php if ( ! $is_handbook) : ?>53 <?php if ( $filters ) : ?> 53 54 54 55 <div class="search-post-type"> 55 56 <span><?php _e( 'Filter by type:', 'wporg' ); ?></span>