Coding Standards: Split long printf() calls for search results for better readability.
Follow-up to [49284]. See #37353. Built from https://develop.svn.wordpress.org/trunk@49286 git-svn-id: http://core.svn.wordpress.org/trunk@49048 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -275,8 +275,13 @@ if ( current_user_can( 'upload_files' ) ) {
|
||||
}
|
||||
|
||||
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>';
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user