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/upload.php

    r49284 r49286  
    276276
    277277if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
    278     /* translators: %s: Search query. */
    279     printf( '<span class="subtitle">' . __( 'Search results for: %s' ) . '</span>', '<strong>' . get_search_query() . '</strong>' );
     278    echo '<span class="subtitle">';
     279    printf(
     280        /* translators: %s: Search query. */
     281        __( 'Search results for: %s' ),
     282        '<strong>' . get_search_query() . '</strong>'
     283    );
     284    echo '</span>';
    280285}
    281286?>
Note: See TracChangeset for help on using the changeset viewer.