X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/61343b82c4f0da4c68e4c6373daafff4a81efdd1..7f1521bf193b382565eb753043c161f4cb3fcda7:/wp-admin/network/upgrade.php diff --git a/wp-admin/network/upgrade.php b/wp-admin/network/upgrade.php index 74156547..f1574aea 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,17 +29,16 @@ 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 +63,39 @@ switch ( $action ) { $siteurl = site_url(); $upgrade_url = admin_url( 'upgrade.php?step=upgrade_db' ); restore_current_blog(); + echo "