Changeset 10233
- Timestamp:
- 09/03/2020 02:14:02 AM (4 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
r10215 r10233 1191 1191 $vars[] = 'plugin_advanced'; 1192 1192 $vars[] = 'geopattern_icon'; 1193 $vars[] = 'block_search'; 1193 1194 1194 1195 // Remove support for any query vars the Plugin Directory doesn't support/need. … … 1338 1339 // New-style search links. 1339 1340 if ( get_query_var( 's' ) && isset( $_GET['s'] ) ) { 1340 wp_safe_redirect( site_url( '/search/' . urlencode( get_query_var( 's' ) ) . '/' ), 301 ); 1341 $url = site_url( '/search/' . urlencode( get_query_var( 's' ) ) . '/' ); 1342 if ( get_query_var( 'block_search' ) ) { 1343 $url = add_query_arg( 'block_search', get_query_var( 'block_search' ), $url ); 1344 } 1345 1346 wp_safe_redirect( $url, 301 ); 1341 1347 die(); 1342 1348 } -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/search.php
r6284 r10233 25 25 ?> 26 26 </h1> 27 <?php 28 if ( get_query_var( 'block_search' ) ) { 29 printf( 30 /* translators: %s: Search URL */ 31 '<p>' . __( 'Searching the block directory. <a href="%s">Search all plugins</a>.', 'wporg-plugins' ) . '</p>', 32 remove_query_arg( 'block_search' ) 33 ); 34 } 35 ?> 27 36 </header><!-- .page-header --> 28 37 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/searchform.php
r6284 r10233 12 12 <label for="s" class="screen-reader-text"><?php echo esc_html_x( 'Search for:', 'label', 'wporg-plugins' ); ?></label> 13 13 <input type="search" id="s" class="search-field" placeholder="<?php echo esc_attr_x( 'Search plugins', 'placeholder', 'wporg-plugins' ); ?>" value="<?php the_search_query(); ?>" name="s" /> 14 <?php if ( get_query_var( 'block_search' ) || 'block' === get_query_var( 'browse' ) ) : ?> 15 <input type="hidden" value="1" name="block_search" /> 16 <?php endif; ?> 14 17 <button class="button button-primary button-search"><i class="dashicons dashicons-search"></i><span class="screen-reader-text"><?php esc_html_e( 'Search plugins', 'wporg-plugins' ); ?></span></button> 15 18 </form>
Note: See TracChangeset
for help on using the changeset viewer.