'; echo '
'; echo $message; echo '
'; echo ''; echo ''; } /** * Upgrade WordPress core display. * * @since 2.7 * * @return null */ function do_core_upgrade() { global $wp_filesystem; $url = wp_nonce_url("update.php?action=upgrade-core", "upgrade-core"); if ( false === ($credentials = request_filesystem_credentials($url)) ) return; if ( ! WP_Filesystem($credentials) ) { request_filesystem_credentials($url, '', true); //Failed to connect, Error and request again return; } echo '' . __('Plugin failed to reactivate due to a fatal error.') . '
'; error_reporting( E_ALL ^ E_NOTICE ); @ini_set('display_errors', true); //Ensure that Fatal errors are displayed. include(WP_PLUGIN_DIR . '/' . $plugin); } echo ""; } elseif ( 'upgrade-core' == $_GET['action'] ) { $title = __('Upgrade WordPress'); $parent_file = 'index.php'; require_once('admin-header.php'); core_upgrade_preamble(); include('admin-footer.php'); } elseif ( 'do-core-upgrade' ) { check_admin_referer('upgrade-core'); $title = __('Upgrade WordPress'); $parent_file = 'index.php'; require_once('admin-header.php'); do_core_upgrade(); include('admin-footer.php'); } } ?>