Coding Standards: Split long printf() calls for search results for better readability.

Follow-up to [49284].

See #37353.

git-svn-id: https://develop.svn.wordpress.org/trunk@49286 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2020-10-23 17:17:52 +00:00
parent 797e2bf9ff
commit bcc26de235
9 changed files with 63 additions and 18 deletions

View File

@@ -406,8 +406,13 @@ if ( current_user_can( $post_type_object->cap->create_posts ) ) {
}
if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
/* translators: %s: Search query. */
printf( ' <span class="subtitle">' . __( 'Search results for: %s' ) . '</span>', '<strong>' . get_search_query() . '</strong>' );
echo '<span class="subtitle">';
printf(
/* translators: %s: Search query. */
__( 'Search results for: %s' ),
'<strong>' . get_search_query() . '</strong>'
);
echo '</span>';
}
?>