Make WordPress Core


Ignore:
Timestamp:
08/28/2008 07:09:46 AM (17 years ago)
Author:
ryan
Message:

Upgrade db with remote post during core update. see #5560

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/upgrade.php

    r8645 r8759  
    2121require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
    2222
    23 if (isset($_GET['step']))
    24     $step = (int) $_GET['step'];
     23if ( isset($_GET['step']) )
     24    $step = $_GET['step'];
    2525else
    2626    $step = 0;
     27
     28// Do it.  No output.
     29if ( 'upgrade_db' === $step ) {
     30    wp_upgrade();
     31    die('0');
     32}
     33
     34$step = (int) $step;
     35
    2736@header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
    2837?>
Note: See TracChangeset for help on using the changeset viewer.