Revert [31749], see #31528.

git-svn-id: https://develop.svn.wordpress.org/trunk@31755 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dominik Schilling (ocean90)
2015-03-12 17:50:54 +00:00
parent 21134a0c89
commit 94768cad74
6 changed files with 11 additions and 203 deletions

View File

@@ -542,21 +542,8 @@ function wp_default_scripts( &$scripts ) {
) );
$scripts->add( 'updates', "/wp-admin/js/updates$suffix.js", array( 'jquery', 'wp-util', 'wp-a11y' ) );
/*
* Determine whether the user will need to enter filesystem credentials
* on the front-end.
*/
require_once(ABSPATH . 'wp-admin/includes/file.php');
$filesystem_method = get_filesystem_method();
ob_start();
$filesystem_credentials_are_stored = request_filesystem_credentials( self_admin_url() );
ob_end_clean();
$request_filesystem_credentials = ( $filesystem_method != 'direct' && ! $filesystem_credentials_are_stored ) ? 1 : 0;
did_action( 'init' ) && $scripts->localize( 'updates', '_wpUpdatesSettings', array(
'ajax_nonce' => wp_create_nonce( 'updates' ),
'requestFilesystemCredentials' => $request_filesystem_credentials,
'l10n' => array(
'updating' => __( 'Updating...' ),
'updated' => __( 'Updated!' ),