diff --git a/src/wp-admin/customize.php b/src/wp-admin/customize.php
index 375804d568dc..72630429cdbd 100644
--- a/src/wp-admin/customize.php
+++ b/src/wp-admin/customize.php
@@ -219,7 +219,7 @@
' . get_bloginfo( 'name', 'display' ) . '' );
+ printf( __( 'You are customizing %s' ), '' . get_bloginfo( 'name', 'display' ) . '' );
?>
diff --git a/src/wp-admin/maint/repair.php b/src/wp-admin/maint/repair.php
index 64242ce6f670..e4ca4544a95b 100644
--- a/src/wp-admin/maint/repair.php
+++ b/src/wp-admin/maint/repair.php
@@ -111,7 +111,7 @@
printf( __( 'Successfully repaired the %s table.' ), "$table
" );
} else {
/* translators: 1: Table name, 2: Error message. */
- echo sprintf( __( 'Failed to repair the %1$s table. Error: %2$s' ), "$table
", "$check->Msg_text
" ) . '
';
+ printf( __( 'Failed to repair the %1$s table. Error: %2$s' ), "$table
", "$check->Msg_text
" ) . '
';
$problems[ $table ] = $check->Msg_text;
$okay = false;
}
diff --git a/src/wp-admin/network/sites.php b/src/wp-admin/network/sites.php
index 7cd53348f08e..16873452d277 100644
--- a/src/wp-admin/network/sites.php
+++ b/src/wp-admin/network/sites.php
@@ -117,7 +117,7 @@
-
built-in CSS editor.' ), esc_url( add_query_arg( 'autofocus[section]', 'custom_css', admin_url( 'customize.php' ) ) ) @@ -362,7 +362,7 @@ parent() ) { echo '
'; - echo sprintf( + printf( /* translators: %s: Link to documentation on child themes. */ __( 'If you need to tweak more than your theme’s CSS, you might want to try making a child theme.' ), esc_url( __( 'https://developer.wordpress.org/themes/advanced-topics/child-themes/' ) ) diff --git a/src/wp-admin/theme-install.php b/src/wp-admin/theme-install.php index 9afa79369f6a..89ac910e9c47 100644 --- a/src/wp-admin/theme-install.php +++ b/src/wp-admin/theme-install.php @@ -391,7 +391,7 @@ diff --git a/src/wp-includes/class-wp-customize-panel.php b/src/wp-includes/class-wp-customize-panel.php index 73ce2734ce14..29c023b5fbd3 100644 --- a/src/wp-includes/class-wp-customize-panel.php +++ b/src/wp-includes/class-wp-customize-panel.php @@ -371,7 +371,7 @@ protected function content_template() { {{ data.title }}' ); + printf( __( 'You are customizing %s' ), '{{ data.title }}' ); ?> <# if ( data.description ) { #> diff --git a/src/wp-includes/class-wp-customize-widgets.php b/src/wp-includes/class-wp-customize-widgets.php index e48ad5ab53ec..872cef24edd1 100644 --- a/src/wp-includes/class-wp-customize-widgets.php +++ b/src/wp-includes/class-wp-customize-widgets.php @@ -824,7 +824,7 @@ public function output_widget_control_templates() { manager->get_panel( 'widgets' )->title ) ); + printf( __( 'Customizing ▸ %s' ), esc_html( $this->manager->get_panel( 'widgets' )->title ) ); ?> diff --git a/src/wp-includes/customize/class-wp-customize-selective-refresh.php b/src/wp-includes/customize/class-wp-customize-selective-refresh.php index 822b1354c773..7a02bc3cf0a5 100644 --- a/src/wp-includes/customize/class-wp-customize-selective-refresh.php +++ b/src/wp-includes/customize/class-wp-customize-selective-refresh.php @@ -208,7 +208,7 @@ public function export_preview_data() { ); // Export data to JS. - echo sprintf( '', wp_json_encode( $exports ) ); + printf( '', wp_json_encode( $exports ) ); } /** diff --git a/src/wp-includes/customize/class-wp-customize-themes-section.php b/src/wp-includes/customize/class-wp-customize-themes-section.php index 260380191ece..75e57398abe7 100644 --- a/src/wp-includes/customize/class-wp-customize-themes-section.php +++ b/src/wp-includes/customize/class-wp-customize-themes-section.php @@ -149,7 +149,7 @@ protected function filter_bar_content_template() { 0' ); + printf( __( '%s themes' ), '0' ); ?> diff --git a/src/wp-includes/widgets/class-wp-widget-categories.php b/src/wp-includes/widgets/class-wp-widget-categories.php index b532454fe874..0d53139cc967 100644 --- a/src/wp-includes/widgets/class-wp-widget-categories.php +++ b/src/wp-includes/widgets/class-wp-widget-categories.php @@ -66,7 +66,7 @@ public function widget( $args, $instance ) { ); if ( $dropdown ) { - echo sprintf( '