Make WordPress Core


Ignore:
Timestamp:
10/23/2020 05:17:52 PM (4 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/sites.php

    r49284 r49286  
    372372<?php
    373373if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
    374     /* translators: %s: Search query. */
    375     printf( '<span class="subtitle">' . __( 'Search results for: %s' ) . '</span>', '<strong>' . esc_html( $s ) . '</strong>' );
     374    echo '<span class="subtitle">';
     375    printf(
     376        /* translators: %s: Search query. */
     377        __( 'Search results for: %s' ),
     378        '<strong>' . esc_html( $s ) . '</strong>'
     379    );
     380    echo '</span>';
    376381}
    377382?>
Note: See TracChangeset for help on using the changeset viewer.