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:
parent
608ba462dd
commit
f83aa63730
|
@ -338,8 +338,13 @@ if ( is_plugin_active( 'wpcat2tag-importer/wpcat2tag-importer.php' ) ) {
|
|||
|
||||
<?php
|
||||
if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
|
||||
echo '<span class="subtitle">';
|
||||
printf(
|
||||
/* translators: %s: Search query. */
|
||||
printf( '<span class="subtitle">' . __( 'Search results for: %s' ) . '</span>', '<strong>' . esc_html( wp_unslash( $_REQUEST['s'] ) ) . '</strong>' );
|
||||
__( 'Search results for: %s' ),
|
||||
'<strong>' . esc_html( wp_unslash( $_REQUEST['s'] ) ) . '</strong>'
|
||||
);
|
||||
echo '</span>';
|
||||
}
|
||||
?>
|
||||
|
||||
|
|
|
@ -406,8 +406,13 @@ if ( current_user_can( $post_type_object->cap->create_posts ) ) {
|
|||
}
|
||||
|
||||
if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
|
||||
echo '<span class="subtitle">';
|
||||
printf(
|
||||
/* translators: %s: Search query. */
|
||||
printf( ' <span class="subtitle">' . __( 'Search results for: %s' ) . '</span>', '<strong>' . get_search_query() . '</strong>' );
|
||||
__( 'Search results for: %s' ),
|
||||
'<strong>' . get_search_query() . '</strong>'
|
||||
);
|
||||
echo '</span>';
|
||||
}
|
||||
?>
|
||||
|
||||
|
|
|
@ -104,8 +104,13 @@ echo esc_html( $title );
|
|||
|
||||
<?php
|
||||
if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
|
||||
echo '<span class="subtitle">';
|
||||
printf(
|
||||
/* translators: %s: Search query. */
|
||||
printf( '<span class="subtitle">' . __( 'Search results for: %s' ) . '</span>', '<strong>' . esc_html( wp_unslash( $_REQUEST['s'] ) ) . '</strong>' );
|
||||
__( 'Search results for: %s' ),
|
||||
'<strong>' . esc_html( wp_unslash( $_REQUEST['s'] ) ) . '</strong>'
|
||||
);
|
||||
echo '</span>';
|
||||
}
|
||||
?>
|
||||
|
||||
|
|
|
@ -371,8 +371,13 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
|||
|
||||
<?php
|
||||
if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
|
||||
echo '<span class="subtitle">';
|
||||
printf(
|
||||
/* translators: %s: Search query. */
|
||||
printf( '<span class="subtitle">' . __( 'Search results for: %s' ) . '</span>', '<strong>' . esc_html( $s ) . '</strong>' );
|
||||
__( 'Search results for: %s' ),
|
||||
'<strong>' . esc_html( $s ) . '</strong>'
|
||||
);
|
||||
echo '</span>';
|
||||
}
|
||||
?>
|
||||
|
||||
|
|
|
@ -352,8 +352,13 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
|||
|
||||
<?php
|
||||
if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
|
||||
echo '<span class="subtitle">';
|
||||
printf(
|
||||
/* translators: %s: Search query. */
|
||||
printf( '<span class="subtitle">' . __( 'Search results for: %s' ) . '</span>', '<strong>' . esc_html( $s ) . '</strong>' );
|
||||
__( 'Search results for: %s' ),
|
||||
'<strong>' . esc_html( $s ) . '</strong>'
|
||||
);
|
||||
echo '</span>';
|
||||
}
|
||||
?>
|
||||
|
||||
|
|
|
@ -278,8 +278,13 @@ if ( isset( $_REQUEST['updated'] ) && 'true' == $_REQUEST['updated'] && ! empty(
|
|||
endif;
|
||||
|
||||
if ( strlen( $usersearch ) ) {
|
||||
echo '<span class="subtitle">';
|
||||
printf(
|
||||
/* translators: %s: Search query. */
|
||||
printf( '<span class="subtitle">' . __( 'Search results for: %s' ) . '</span>', '<strong>' . esc_html( $usersearch ) . '</strong>' );
|
||||
__( 'Search results for: %s' ),
|
||||
'<strong>' . esc_html( $usersearch ) . '</strong>'
|
||||
);
|
||||
echo '</span>';
|
||||
}
|
||||
?>
|
||||
|
||||
|
|
|
@ -727,8 +727,13 @@ if ( ( ! is_multisite() || is_network_admin() ) && current_user_can( 'install_pl
|
|||
}
|
||||
|
||||
if ( strlen( $s ) ) {
|
||||
echo '<span class="subtitle">';
|
||||
printf(
|
||||
/* translators: %s: Search query. */
|
||||
printf( '<span class="subtitle">' . __( 'Search results for: %s' ) . '</span>', '<strong>' . esc_html( urldecode( $s ) ) . '</strong>' );
|
||||
__( 'Search results for: %s' ),
|
||||
'<strong>' . esc_html( urldecode( $s ) ) . '</strong>'
|
||||
);
|
||||
echo '</span>';
|
||||
}
|
||||
?>
|
||||
|
||||
|
|
|
@ -275,8 +275,13 @@ if ( current_user_can( 'upload_files' ) ) {
|
|||
}
|
||||
|
||||
if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
|
||||
echo '<span class="subtitle">';
|
||||
printf(
|
||||
/* translators: %s: Search query. */
|
||||
printf( '<span class="subtitle">' . __( 'Search results for: %s' ) . '</span>', '<strong>' . get_search_query() . '</strong>' );
|
||||
__( 'Search results for: %s' ),
|
||||
'<strong>' . get_search_query() . '</strong>'
|
||||
);
|
||||
echo '</span>';
|
||||
}
|
||||
?>
|
||||
|
||||
|
|
|
@ -570,8 +570,13 @@ switch ( $wp_list_table->current_action() ) {
|
|||
}
|
||||
|
||||
if ( strlen( $usersearch ) ) {
|
||||
echo '<span class="subtitle">';
|
||||
printf(
|
||||
/* translators: %s: Search query. */
|
||||
printf( '<span class="subtitle">' . __( 'Search results for: %s' ) . '</span>', '<strong>' . esc_html( $usersearch ) . '</strong>' );
|
||||
__( 'Search results for: %s' ),
|
||||
'<strong>' . esc_html( $usersearch ) . '</strong>'
|
||||
);
|
||||
echo '</span>';
|
||||
}
|
||||
?>
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.6-beta1-49285';
|
||||
$wp_version = '5.6-beta1-49286';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue