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-tags.php

    r49284 r49286  
    339339<?php
    340340if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
    341     /* translators: %s: Search query. */
    342     printf( '<span class="subtitle">' . __( 'Search results for: %s' ) . '</span>', '<strong>' . esc_html( wp_unslash( $_REQUEST['s'] ) ) . '</strong>' );
     341    echo '<span class="subtitle">';
     342    printf(
     343        /* translators: %s: Search query. */
     344        __( 'Search results for: %s' ),
     345        '<strong>' . esc_html( wp_unslash( $_REQUEST['s'] ) ) . '</strong>'
     346    );
     347    echo '</span>';
    343348}
    344349?>
Note: See TracChangeset for help on using the changeset viewer.