X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/a6f44f0edcda2471c5a33e4156c1c9488c7f3210..784f914b1e4b1c62d6657e86397c2e83bcee4295:/wp-admin/network/upgrade.php?action=upgrade;n=%3C%3Fphp%20echo%20%28%24n%20%20%205%29%20%3F%3E diff --git a/wp-admin/network/upgrade.php b/wp-admin/network/upgrade.php index 1a004a2f..ab2183fd 100644 --- a/wp-admin/network/upgrade.php +++ b/wp-admin/network/upgrade.php @@ -8,7 +8,7 @@ */ /** Load WordPress Administration Bootstrap */ -require_once( './admin.php' ); +require_once( dirname( __FILE__ ) . '/admin.php' ); if ( ! is_multisite() ) wp_die( __( 'Multisite support is not enabled.' ) ); @@ -29,18 +29,17 @@ get_current_screen()->add_help_tab( array( get_current_screen()->set_help_sidebar( '
' . __('For more information:') . '
' . - '' . __('Documentation on Upgrade Network') . '
' . - '' . __('Support Forums') . '
' + '' . __('Documentation on Upgrade Network') . '
' . + '' . __('Support Forums') . '
' ); -require_once('../admin-header.php'); +require_once( ABSPATH . 'wp-admin/admin-header.php' ); if ( ! current_user_can( 'manage_network' ) ) - wp_die( __( 'You do not have permission to access this page.' ) ); + wp_die( __( 'You do not have permission to access this page.' ), 403 ); echo '' . __( 'All done!' ) . '
'; break; @@ -64,16 +66,39 @@ switch ( $action ) { $siteurl = site_url(); $upgrade_url = admin_url( 'upgrade.php?step=upgrade_db' ); restore_current_blog(); + echo "