WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/23/2020 05:17:52 PM (4 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Split long printf() calls for search results for better readability.

Follow-up to [49284].

See #37353.

File:
1 edited

Legend:

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

    r49284 r49286  
    407407
    408408if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
    409     /* translators: %s: Search query. */
    410     printf( ' <span class="subtitle">' . __( 'Search results for: %s' ) . '</span>', '<strong>' . get_search_query() . '</strong>' );
     409    echo '<span class="subtitle">';
     410    printf(
     411        /* translators: %s: Search query. */
     412        __( 'Search results for: %s' ),
     413        '<strong>' . get_search_query() . '</strong>'
     414    );
     415    echo '</span>';
    411416}
    412417?>
Note: See TracChangeset for help on using the changeset viewer.