WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/23/2020 03:59:34 PM (12 months ago)
Author:
helen
Message:

Administration: Unify search results message on list tables.

This wraps the search string in a <strong> tag, which makes easier to parse visually especially when your search string also contains double quotes.

Props Mista-Flo, mapk, sergeybiryukov.
Fixes #37353.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/link-manager.php

    r47785 r49284  
    106106if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
    107107    /* translators: %s: Search query. */
    108     printf( '<span class="subtitle">' . __( 'Search results for &#8220;%s&#8221;' ) . '</span>', esc_html( wp_unslash( $_REQUEST['s'] ) ) );
     108    printf( '<span class="subtitle">' . __( 'Search results for: %s' ) . '</span>', '<strong>' . esc_html( wp_unslash( $_REQUEST['s'] ) ) . '</strong>' );
    109109}
    110110?>
Note: See TracChangeset for help on using the changeset viewer.