WordPress.org

Make WordPress Core

Ticket #47070: 47070-option-1.3.diff

File 47070-option-1.3.diff, 950 bytes (added by afragen, 12 months ago)

don't escape translation, do escape URL

  • wp-admin/includes/update.php

    diff --git a/wp-admin/includes/update.php b/wp-admin/includes/update.php
    index d4c1dd6a07..58595ecea6 100644
    a b function wp_recovery_mode_nag() { 
    841841                return;
    842842        }
    843843
     844        $url = wp_login_url();
     845        $url = add_query_arg( 'action', WP_Recovery_Mode::EXIT_ACTION, $url );
     846        $url = wp_nonce_url( $url, WP_Recovery_Mode::EXIT_ACTION );
     847
    844848        ?>
    845849        <div class="notice notice-info">
    846850                <p>
    847                         <?php esc_html_e( 'You are in recovery mode. This means there may be an error with a theme or plugin. To exit recovery mode, log out or use the Exit button.' ); ?>
     851                        <?php
     852                        /* translators: %s: Recovery Mode exit link */
     853                        printf(
     854                                __( 'You are in recovery mode. This means there may be an error with a theme or plugin. To exit recovery mode, log out or use the Exit button. <a href="%s">Exit Recovery Mode</a>' ),
     855                                esc_url( $url )
     856                        );
     857                        ?>
    848858                </p>
    849859        </div>
    850860        <?php