WordPress.org

Make WordPress Core

Changeset 49591


Ignore:
Timestamp:
11/13/2020 10:48:24 AM (5 months ago)
Author:
SergeyBiryukov
Message:

I18N: Remove HTML tags from translatable strings on WordPress Updates screen.

Follow-up to [49587].

Props fierevere.
See #51742.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/update-core.php

    r49587 r49591  
    396396            if ( $can_set_update_option ) {
    397397                echo '<br>';
    398                 echo sprintf(
    399                     /* Translators: Action link to disable core auto-updates. */
    400                     __( '<a href="%s">Switch to automatic updates for maintenance and security releases only.</a>' ),
    401                     wp_nonce_url( add_query_arg( 'value', 'disable', $action_url ), 'core-major-auto-updates-nonce' )
     398                printf(
     399                    '<a href="%s">%s</a>',
     400                    wp_nonce_url( add_query_arg( 'value', 'disable', $action_url ), 'core-major-auto-updates-nonce' ),
     401                    __( 'Switch to automatic updates for maintenance and security releases only.' )
    402402                );
    403403            }
     
    407407            if ( $can_set_update_option ) {
    408408                echo '<br>';
    409                 echo sprintf(
    410                     /* Translators: Action link to enable core auto-updates. */
    411                     __( '<a href="%s">Enable automatic updates for all new versions of WordPress.</a>' ),
    412                     wp_nonce_url( add_query_arg( 'value', 'enable', $action_url ), 'core-major-auto-updates-nonce' )
     409                printf(
     410                    '<a href="%s">%s</a>',
     411                    wp_nonce_url( add_query_arg( 'value', 'enable', $action_url ), 'core-major-auto-updates-nonce' ),
     412                    __( 'Enable automatic updates for all new versions of WordPress.' )
    413413                );
    414414            }
Note: See TracChangeset for help on using the changeset viewer.