Coding Standards: Correct alignment in `WP_Site_Health::get_test_update_temp_backup_writable()`.
This fixes an `Equals sign not aligned with surrounding assignments; expected 1 space but found 6 spaces` WPCS warning. Follow-up to [51815]. See #51857, #53359. Built from https://develop.svn.wordpress.org/trunk@51951 git-svn-id: http://core.svn.wordpress.org/trunk@51540 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0775153e27
commit
0e2f9ad5b6
|
@ -1978,8 +1978,8 @@ class WP_Site_Health {
|
|||
$themes_dir_is_writable = $wp_filesystem->is_writable( "$wp_content/upgrade/temp-backup/themes" );
|
||||
|
||||
if ( $plugins_dir_exists && ! $plugins_dir_is_writable && $themes_dir_exists && ! $themes_dir_is_writable ) {
|
||||
$result['status'] = 'critical';
|
||||
$result['label'] = sprintf(
|
||||
$result['status'] = 'critical';
|
||||
$result['label'] = sprintf(
|
||||
/* translators: %s: temp-backup */
|
||||
__( 'Plugins and themes %s directories exist but are not writable' ),
|
||||
'temp-backup'
|
||||
|
@ -1994,8 +1994,8 @@ class WP_Site_Health {
|
|||
}
|
||||
|
||||
if ( $plugins_dir_exists && ! $plugins_dir_is_writable ) {
|
||||
$result['status'] = 'critical';
|
||||
$result['label'] = sprintf(
|
||||
$result['status'] = 'critical';
|
||||
$result['label'] = sprintf(
|
||||
/* translators: %s: temp-backup */
|
||||
__( 'Plugins %s directory exists but is not writable' ),
|
||||
'temp-backup'
|
||||
|
@ -2009,8 +2009,8 @@ class WP_Site_Health {
|
|||
}
|
||||
|
||||
if ( $themes_dir_exists && ! $themes_dir_is_writable ) {
|
||||
$result['status'] = 'critical';
|
||||
$result['label'] = sprintf(
|
||||
$result['status'] = 'critical';
|
||||
$result['label'] = sprintf(
|
||||
/* translators: %s: temp-backup */
|
||||
__( 'Themes %s directory exists but is not writable' ),
|
||||
'temp-backup'
|
||||
|
@ -2024,8 +2024,8 @@ class WP_Site_Health {
|
|||
}
|
||||
|
||||
if ( ( ! $plugins_dir_exists || ! $themes_dir_exists ) && $backup_dir_exists && ! $backup_dir_is_writable ) {
|
||||
$result['status'] = 'critical';
|
||||
$result['label'] = sprintf(
|
||||
$result['status'] = 'critical';
|
||||
$result['label'] = sprintf(
|
||||
/* translators: %s: temp-backup */
|
||||
__( 'The %s directory exists but is not writable' ),
|
||||
'temp-backup'
|
||||
|
@ -2039,8 +2039,8 @@ class WP_Site_Health {
|
|||
}
|
||||
|
||||
if ( ! $backup_dir_exists && $upgrade_dir_exists && ! $upgrade_dir_is_writable ) {
|
||||
$result['status'] = 'critical';
|
||||
$result['label'] = sprintf(
|
||||
$result['status'] = 'critical';
|
||||
$result['label'] = sprintf(
|
||||
/* translators: %s: upgrade */
|
||||
__( 'The %s directory exists but is not writable' ),
|
||||
'upgrade'
|
||||
|
@ -2054,8 +2054,8 @@ class WP_Site_Health {
|
|||
}
|
||||
|
||||
if ( ! $upgrade_dir_exists && ! $wp_filesystem->is_writable( $wp_content ) ) {
|
||||
$result['status'] = 'critical';
|
||||
$result['label'] = sprintf(
|
||||
$result['status'] = 'critical';
|
||||
$result['label'] = sprintf(
|
||||
/* translators: %s: upgrade */
|
||||
__( 'The %s directory cannot be created' ),
|
||||
'upgrade'
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.9-alpha-51950';
|
||||
$wp_version = '5.9-alpha-51951';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue