Revert [31749], see #31528.
Built from https://develop.svn.wordpress.org/trunk@31755 git-svn-id: http://core.svn.wordpress.org/trunk@31736 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -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!' ),
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.2-alpha-31754';
|
||||
$wp_version = '4.2-alpha-31755';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
||||
Reference in New Issue
Block a user