Make WordPress Core


Ignore:
Timestamp:
10/23/2020 05:17:52 PM (5 years 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/network/themes.php

    r49284 r49286  
    353353<?php
    354354if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
    355     /* translators: %s: Search query. */
    356     printf( '<span class="subtitle">' . __( 'Search results for: %s' ) . '</span>', '<strong>' . esc_html( $s ) . '</strong>' );
     355    echo '<span class="subtitle">';
     356    printf(
     357        /* translators: %s: Search query. */
     358        __( 'Search results for: %s' ),
     359        '<strong>' . esc_html( $s ) . '</strong>'
     360    );
     361    echo '</span>';
    357362}
    358363?>
Note: See TracChangeset for help on using the changeset viewer.