WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/23/2020 03:59:34 PM (14 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/edit-comments.php

    r49193 r49284  
    233233    printf(
    234234        /* translators: %s: Search query. */
    235         __( 'Search results for &#8220;%s&#8221;' ),
    236         wp_html_excerpt( esc_html( wp_unslash( $_REQUEST['s'] ) ), 50, '&hellip;' )
     235        __( 'Search results for: %s' ),
     236        '<strong>' . wp_html_excerpt( esc_html( wp_unslash( $_REQUEST['s'] ) ), 50, '&hellip;' . '</strong>' )
    237237    );
    238238    echo '</span>';
Note: See TracChangeset for help on using the changeset viewer.