WordPress.org

Make WordPress Core

Ticket #47070: 47070-option-1.2.diff

File 47070-option-1.2.diff, 966 bytes (added by afragen, 9 months ago)

remove extra code styling fixes

  • wp-admin/includes/update.php

    diff --git a/wp-admin/includes/update.php b/wp-admin/includes/update.php
    index d4c1dd6a07..b044c7aef4 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                                wp_kses_post(
     855                                        __( '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>' )
     856                                ),
     857                                $url
     858                        );
     859                        ?>
    848860                </p>
    849861        </div>
    850862        <?php