WordPress.org

Make WordPress Core

Ticket #47070: 47070-option-1.4.diff

File 47070-option-1.4.diff, 952 bytes (added by garrett-eclipse, 13 months ago)

Refresh to move translator comment into multi-line printf statement

  • src/wp-admin/includes/update.php

     
    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                        printf(
     853                                /* translators: %s: Recovery Mode exit link */
     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