diff --git a/wp-admin/includes/update.php b/wp-admin/includes/update.php
index d4c1dd6a07..e2c90d460c 100644
|
a
|
b
|
function find_core_auto_update() { |
| 86 | 86 | return false; |
| 87 | 87 | } |
| 88 | 88 | |
| 89 | | include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); |
| | 89 | include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; |
| 90 | 90 | |
| 91 | 91 | $auto_update = false; |
| 92 | | $upgrader = new WP_Automatic_Updater; |
| | 92 | $upgrader = new WP_Automatic_Updater(); |
| 93 | 93 | foreach ( $updates->updates as $update ) { |
| 94 | 94 | if ( 'autoupdate' != $update->response ) { |
| 95 | 95 | continue; |
| … |
… |
function core_update_footer( $msg = '' ) { |
| 212 | 212 | |
| 213 | 213 | $cur = get_preferred_from_update_core(); |
| 214 | 214 | if ( ! is_object( $cur ) ) { |
| 215 | | $cur = new stdClass; |
| | 215 | $cur = new stdClass(); |
| 216 | 216 | } |
| 217 | 217 | |
| 218 | 218 | if ( ! isset( $cur->current ) ) { |
| … |
… |
function wp_theme_update_row( $theme_key, $theme ) { |
| 654 | 654 | * @return false|void |
| 655 | 655 | */ |
| 656 | 656 | function maintenance_nag() { |
| 657 | | include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version |
| | 657 | include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version |
| 658 | 658 | global $upgrading; |
| 659 | 659 | $nag = isset( $upgrading ); |
| 660 | 660 | if ( ! $nag ) { |
| … |
… |
function wp_recovery_mode_nag() { |
| 841 | 841 | return; |
| 842 | 842 | } |
| 843 | 843 | |
| | 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 | |
| 844 | 848 | ?> |
| 845 | 849 | <div class="notice notice-info"> |
| 846 | 850 | <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 | ?> |
| 848 | 860 | </p> |
| 849 | 861 | </div> |
| 850 | 862 | <?php |