Changeset 4887
- Timestamp:
- 02/15/2007 08:16:43 AM (18 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin.php
r4645 r4887 5 5 require_once('../wp-config.php'); 6 6 7 if ( get_option('db_version') != $wp_db_version ) 8 wp_die(sprintf(__("Your database is out-of-date. Please <a href='%s'>upgrade</a>."), get_option('siteurl') . '/wp-admin/upgrade.php')); 9 7 if ( get_option('db_version') != $wp_db_version ) { 8 wp_redirect(get_option('siteurl') . '/wp-admin/upgrade.php?_wp_http_referer=' . urlencode(stripslashes($_SERVER['REQUEST_URI']))); 9 exit; 10 } 11 10 12 require_once(ABSPATH . 'wp-admin/admin-functions.php'); 11 13 require_once(ABSPATH . 'wp-admin/admin-db.php'); -
trunk/wp-admin/upgrade.php
r4656 r4887 9 9 10 10 if (isset($_GET['step'])) 11 $step = $_GET['step'];11 $step = (int) $_GET['step']; 12 12 else 13 13 $step = 0; … … 26 26 <body> 27 27 <h1 id="logo"><img alt="WordPress" src="images/wordpress-logo.png" /></h1> 28 <?php 29 switch($step) { 28 29 <?php if ( get_option('db_version') == $wp_db_version ) : ?> 30 31 <h2><?php _e('No Upgrade Required'); ?></h2> 32 <p><?php _e('Your WordPress database is already up-to-date!'); ?></p> 33 <h2 class="step"><a href="<?php echo get_option('home'); ?>/"><?php _e('Continue »'); ?></a></h2> 34 35 <?php else : 36 switch($step) : 30 37 case 0: 31 38 $goback = attribute_escape(stripslashes(wp_get_referer())); 32 ?> 33 <p><?php _e('This file upgrades you from any previous version of WordPress to the latest. It may take a while though, so be patient.'); ?></p> 39 ?> 40 <h2><?php _e('Database Upgrade Required'); ?></h2> 41 <p><?php _e('Your WordPress database is out-of-date, and must be upgraded before you can continue.'); ?></p> 42 <p><?php _e('The upgrade process may take a while, so please be patient.'); ?></p> 34 43 <h2 class="step"><a href="upgrade.php?step=1&backto=<?php echo $goback; ?>"><?php _e('Upgrade WordPress »'); ?></a></h2> 35 44 <?php … … 39 48 40 49 if ( empty( $_GET['backto'] ) ) 41 $backto = __get_option('home') ;50 $backto = __get_option('home') . '/'; 42 51 else 43 52 $backto = attribute_escape(stripslashes($_GET['backto'])); 44 53 ?> 45 <h2><?php _e('Step 1'); ?></h2> 46 <p><?php printf(__("There's actually only one step. So if you see this, you're done. <a href='%s'>Have fun</a>!"), $backto); ?></p> 54 <h2><?php _e('Upgrade Complete'); ?></h2> 55 <p><?php _e('Your WordPress database has been successfully upgraded!'); ?></p> 56 <h2 class="step"><a href="<?php echo $backto; ?>"><?php _e('Continue »'); ?></a></h2> 47 57 48 58 <!-- … … 56 66 <?php 57 67 break; 58 } 68 endswitch; 69 endif; 59 70 ?> 60 71 </body>
Note: See TracChangeset
for help on using the changeset viewer.