From 0d27319c73b0fd33176feb583d59786984d81485 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 13 Nov 2020 10:48:24 +0000 Subject: [PATCH] I18N: Remove HTML tags from translatable strings on WordPress Updates screen. Follow-up to [49587]. Props fierevere. See #51742. git-svn-id: https://develop.svn.wordpress.org/trunk@49591 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/update-core.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/wp-admin/update-core.php b/src/wp-admin/update-core.php index 904a76366a..fb411ef0b6 100644 --- a/src/wp-admin/update-core.php +++ b/src/wp-admin/update-core.php @@ -395,10 +395,10 @@ function core_auto_updates_settings() { if ( $can_set_update_option ) { echo '
'; - echo sprintf( - /* Translators: Action link to disable core auto-updates. */ - __( 'Switch to automatic updates for maintenance and security releases only.' ), - wp_nonce_url( add_query_arg( 'value', 'disable', $action_url ), 'core-major-auto-updates-nonce' ) + printf( + '%s', + wp_nonce_url( add_query_arg( 'value', 'disable', $action_url ), 'core-major-auto-updates-nonce' ), + __( 'Switch to automatic updates for maintenance and security releases only.' ) ); } } elseif ( $upgrade_minor ) { @@ -406,10 +406,10 @@ function core_auto_updates_settings() { if ( $can_set_update_option ) { echo '
'; - echo sprintf( - /* Translators: Action link to enable core auto-updates. */ - __( 'Enable automatic updates for all new versions of WordPress.' ), - wp_nonce_url( add_query_arg( 'value', 'enable', $action_url ), 'core-major-auto-updates-nonce' ) + printf( + '%s', + wp_nonce_url( add_query_arg( 'value', 'enable', $action_url ), 'core-major-auto-updates-nonce' ), + __( 'Enable automatic updates for all new versions of WordPress.' ) ); } } else {