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/link-manager.php

    r49284 r49286  
    105105<?php
    106106if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
    107     /* translators: %s: Search query. */
    108     printf( '<span class="subtitle">' . __( 'Search results for: %s' ) . '</span>', '<strong>' . esc_html( wp_unslash( $_REQUEST['s'] ) ) . '</strong>' );
     107    echo '<span class="subtitle">';
     108    printf(
     109        /* translators: %s: Search query. */
     110        __( 'Search results for: %s' ),
     111        '<strong>' . esc_html( wp_unslash( $_REQUEST['s'] ) ) . '</strong>'
     112    );
     113    echo '</span>';
    109114}
    110115?>
Note: See TracChangeset for help on using the changeset viewer.