PHPCS: Fix WPCS violations in [45220].
See #46707. Built from https://develop.svn.wordpress.org/trunk@45221 git-svn-id: http://core.svn.wordpress.org/trunk@45030 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9a316c6ea4
commit
6ad0bf33ec
|
@ -392,48 +392,48 @@ class WP_Debug_Data {
|
||||||
$not_calculated = __( 'Not calculated' );
|
$not_calculated = __( 'Not calculated' );
|
||||||
|
|
||||||
$info['wp-paths-sizes']['fields'] = array(
|
$info['wp-paths-sizes']['fields'] = array(
|
||||||
'wordpress_path' => array(
|
'wordpress_path' => array(
|
||||||
'label' => __( 'WordPress directory location' ),
|
'label' => __( 'WordPress directory location' ),
|
||||||
'value' => untrailingslashit( ABSPATH ),
|
'value' => untrailingslashit( ABSPATH ),
|
||||||
),
|
),
|
||||||
'wordpress_size' => array(
|
'wordpress_size' => array(
|
||||||
'label' => __( 'WordPress directory size' ),
|
'label' => __( 'WordPress directory size' ),
|
||||||
'value' => $not_calculated,
|
'value' => $not_calculated,
|
||||||
'debug' => 'not calculated',
|
'debug' => 'not calculated',
|
||||||
),
|
),
|
||||||
'uploads_path' => array(
|
'uploads_path' => array(
|
||||||
'label' => __( 'Uploads directory location' ),
|
'label' => __( 'Uploads directory location' ),
|
||||||
'value' => $upload_dir['basedir'],
|
'value' => $upload_dir['basedir'],
|
||||||
),
|
),
|
||||||
'uploads_size' => array(
|
'uploads_size' => array(
|
||||||
'label' => __( 'Uploads directory size' ),
|
'label' => __( 'Uploads directory size' ),
|
||||||
'value' => $not_calculated,
|
'value' => $not_calculated,
|
||||||
'debug' => 'not calculated',
|
'debug' => 'not calculated',
|
||||||
),
|
),
|
||||||
'themes_path' => array(
|
'themes_path' => array(
|
||||||
'label' => __( 'Themes directory location' ),
|
'label' => __( 'Themes directory location' ),
|
||||||
'value' => get_theme_root(),
|
'value' => get_theme_root(),
|
||||||
),
|
),
|
||||||
'themes_size' => array(
|
'themes_size' => array(
|
||||||
'label' => __( 'Themes directory size' ),
|
'label' => __( 'Themes directory size' ),
|
||||||
'value' => $not_calculated,
|
'value' => $not_calculated,
|
||||||
'debug' => 'not calculated',
|
'debug' => 'not calculated',
|
||||||
),
|
),
|
||||||
'plugins_path' => array(
|
'plugins_path' => array(
|
||||||
'label' => __( 'Plugins directory location' ),
|
'label' => __( 'Plugins directory location' ),
|
||||||
'value' => WP_PLUGIN_DIR,
|
'value' => WP_PLUGIN_DIR,
|
||||||
),
|
),
|
||||||
'plugins_size' => array(
|
'plugins_size' => array(
|
||||||
'label' => __( 'Plugins directory size' ),
|
'label' => __( 'Plugins directory size' ),
|
||||||
'value' => $not_calculated,
|
'value' => $not_calculated,
|
||||||
'debug' => 'not calculated',
|
'debug' => 'not calculated',
|
||||||
),
|
),
|
||||||
'database_size' => array(
|
'database_size' => array(
|
||||||
'label' => __( 'Database size' ),
|
'label' => __( 'Database size' ),
|
||||||
'value' => $not_calculated,
|
'value' => $not_calculated,
|
||||||
'debug' => 'not calculated',
|
'debug' => 'not calculated',
|
||||||
),
|
),
|
||||||
'total_size' => array(
|
'total_size' => array(
|
||||||
'label' => __( 'Total installation size' ),
|
'label' => __( 'Total installation size' ),
|
||||||
'value' => $not_calculated,
|
'value' => $not_calculated,
|
||||||
'debug' => 'not calculated',
|
'debug' => 'not calculated',
|
||||||
|
@ -1211,7 +1211,7 @@ class WP_Debug_Data {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( null !== $size_total && $size_db > 0 ) {
|
if ( null !== $size_total && $size_db > 0 ) {
|
||||||
$total_size = $size_total + $size_db;
|
$total_size = $size_total + $size_db;
|
||||||
$total_size_mb = size_format( $total_size, 2 );
|
$total_size_mb = size_format( $total_size, 2 );
|
||||||
|
|
||||||
$all_sizes['total_size'] = array(
|
$all_sizes['total_size'] = array(
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.2-beta3-45220';
|
$wp_version = '5.2-beta3-45221';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue