Making WordPress.org


Ignore:
Timestamp:
09/03/2020 02:14:02 AM (4 years ago)
Author:
dd32
Message:

Plugin Directory: Search: When searches are performed from /browse/block/ limit the searches to the plugins in that section (block plugins).

This is mostly for debugging and to visually see any search modifications easier.

See https://github.com/WordPress/gutenberg/issues/24910
See #2753.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/search.php

    r6284 r10233  
    2525                    ?>
    2626                </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                ?>
    2736            </header><!-- .page-header -->
    2837
Note: See TracChangeset for help on using the changeset viewer.