mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in wp-admin.
See #47632. git-svn-id: https://develop.svn.wordpress.org/trunk@45583 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -35,15 +35,17 @@ function list_core_update( $update ) {
|
||||
global $wp_local_package, $wpdb;
|
||||
static $first_pass = true;
|
||||
|
||||
$wp_version = get_bloginfo( 'version' );
|
||||
$wp_version = get_bloginfo( 'version' );
|
||||
$version_string = sprintf( '%s–<strong>%s</strong>', $update->current, $update->locale );
|
||||
|
||||
if ( 'en_US' == $update->locale && 'en_US' == get_locale() ) {
|
||||
$version_string = $update->current;
|
||||
} elseif ( 'en_US' == $update->locale && $update->packages->partial && $wp_version == $update->partial_version && ( $updates = get_core_updates() ) && 1 == count( $updates ) ) {
|
||||
// If the only available update is a partial builds, it doesn't need a language-specific version string.
|
||||
$version_string = $update->current;
|
||||
} else {
|
||||
$version_string = sprintf( '%s–<strong>%s</strong>', $update->current, $update->locale );
|
||||
} elseif ( 'en_US' == $update->locale && $update->packages->partial && $wp_version == $update->partial_version ) {
|
||||
$updates = get_core_updates();
|
||||
if ( $updates && 1 == count( $updates ) ) {
|
||||
// If the only available update is a partial builds, it doesn't need a language-specific version string.
|
||||
$version_string = $update->current;
|
||||
}
|
||||
}
|
||||
|
||||
$current = false;
|
||||
@@ -537,7 +539,8 @@ function do_core_upgrade( $reinstall = false ) {
|
||||
<h1><?php _e( 'Update WordPress' ); ?></h1>
|
||||
<?php
|
||||
|
||||
if ( false === ( $credentials = request_filesystem_credentials( $url, '', false, ABSPATH, array( 'version', 'locale' ), $allow_relaxed_file_ownership ) ) ) {
|
||||
$credentials = request_filesystem_credentials( $url, '', false, ABSPATH, array( 'version', 'locale' ), $allow_relaxed_file_ownership );
|
||||
if ( false === $credentials ) {
|
||||
echo '</div>';
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user