48 @header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) ); |
50 @header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) ); |
49 ?> |
51 ?> |
50 <!DOCTYPE html> |
52 <!DOCTYPE html> |
51 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> |
53 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> |
52 <head> |
54 <head> |
|
55 <meta name="viewport" content="width=device-width" /> |
53 <meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php echo get_option( 'blog_charset' ); ?>" /> |
56 <meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php echo get_option( 'blog_charset' ); ?>" /> |
54 <title><?php _e( 'WordPress › Update' ); ?></title> |
57 <title><?php _e( 'WordPress › Update' ); ?></title> |
55 <?php |
58 <?php |
56 wp_admin_css( 'install', true ); |
59 wp_admin_css( 'install', true ); |
57 wp_admin_css( 'ie', true ); |
60 wp_admin_css( 'ie', true ); |
58 ?> |
61 ?> |
59 </head> |
62 </head> |
60 <body class="wp-core-ui"> |
63 <body class="wp-core-ui"> |
61 <h1 id="logo"><a href="<?php echo esc_url( __( 'http://wordpress.org/' ) ); ?>"><?php _e( 'WordPress' ); ?></a></h1> |
64 <h1 id="logo"><a href="<?php echo esc_url( __( 'https://wordpress.org/' ) ); ?>" tabindex="-1"><?php _e( 'WordPress' ); ?></a></h1> |
62 |
65 |
63 <?php if ( get_option( 'db_version' ) == $wp_db_version || !is_blog_installed() ) : ?> |
66 <?php if ( get_option( 'db_version' ) == $wp_db_version || !is_blog_installed() ) : ?> |
64 |
67 |
65 <h2><?php _e( 'No Update Required' ); ?></h2> |
68 <h2><?php _e( 'No Update Required' ); ?></h2> |
66 <p><?php _e( 'Your WordPress database is already up-to-date!' ); ?></p> |
69 <p><?php _e( 'Your WordPress database is already up-to-date!' ); ?></p> |
67 <p class="step"><a class="button button-large" href="<?php echo get_option( 'home' ); ?>/"><?php _e( 'Continue' ); ?></a></p> |
70 <p class="step"><a class="button button-large" href="<?php echo get_option( 'home' ); ?>/"><?php _e( 'Continue' ); ?></a></p> |
68 |
71 |
69 <?php elseif ( !$php_compat || !$mysql_compat ) : |
72 <?php elseif ( !$php_compat || !$mysql_compat ) : |
70 if ( !$mysql_compat && !$php_compat ) |
73 if ( !$mysql_compat && !$php_compat ) |
71 printf( __('You cannot update because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version ); |
74 printf( __('You cannot update because <a href="https://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version ); |
72 elseif ( !$php_compat ) |
75 elseif ( !$php_compat ) |
73 printf( __('You cannot update because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher. You are running version %3$s.'), $wp_version, $required_php_version, $php_version ); |
76 printf( __('You cannot update because <a href="https://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher. You are running version %3$s.'), $wp_version, $required_php_version, $php_version ); |
74 elseif ( !$mysql_compat ) |
77 elseif ( !$mysql_compat ) |
75 printf( __('You cannot update because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires MySQL version %2$s or higher. You are running version %3$s.'), $wp_version, $required_mysql_version, $mysql_version ); |
78 printf( __('You cannot update because <a href="https://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires MySQL version %2$s or higher. You are running version %3$s.'), $wp_version, $required_mysql_version, $mysql_version ); |
76 ?> |
79 ?> |
77 <?php else : |
80 <?php else : |
78 switch ( $step ) : |
81 switch ( $step ) : |
79 case 0: |
82 case 0: |
80 $goback = wp_get_referer(); |
83 $goback = wp_get_referer(); |
81 $goback = esc_url_raw( $goback ); |
84 if ( $goback ) { |
82 $goback = urlencode( $goback ); |
85 $goback = esc_url_raw( $goback ); |
|
86 $goback = urlencode( $goback ); |
|
87 } |
83 ?> |
88 ?> |
84 <h2><?php _e( 'Database Update Required' ); ?></h2> |
89 <h2><?php _e( 'Database Update Required' ); ?></h2> |
85 <p><?php _e( 'WordPress has been updated! Before we send you on your way, we have to update your database to the newest version.' ); ?></p> |
90 <p><?php _e( 'WordPress has been updated! Before we send you on your way, we have to update your database to the newest version.' ); ?></p> |
86 <p><?php _e( 'The update process may take a little while, so please be patient.' ); ?></p> |
91 <p><?php _e( 'The update process may take a little while, so please be patient.' ); ?></p> |
87 <p class="step"><a class="button button-large" href="upgrade.php?step=1&backto=<?php echo $goback; ?>"><?php _e( 'Update WordPress Database' ); ?></a></p> |
92 <p class="step"><a class="button button-large" href="upgrade.php?step=1&backto=<?php echo $goback; ?>"><?php _e( 'Update WordPress Database' ); ?></a></p> |