Coding Standards: Correct some minor coding standards issues.

Introduced in [49154], [49212], [49223], and [49224].
Built from https://develop.svn.wordpress.org/trunk@49225


git-svn-id: http://core.svn.wordpress.org/trunk@48987 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
desrosj 2020-10-20 13:29:08 +00:00
parent 8fbbd54c40
commit d40c365a30
6 changed files with 6 additions and 6 deletions

View File

@ -2244,7 +2244,7 @@ function get_post_states( $post ) {
* @return string Media states string.
*/
function _media_states( $post, $echo = true ) {
$media_states = get_media_states( $post );
$media_states = get_media_states( $post );
$media_states_string = '';
if ( ! empty( $media_states ) ) {

View File

@ -7599,7 +7599,7 @@ function get_dirsize( $directory, $max_execution_time = null ) {
function recurse_dirsize( $directory, $exclude = null, $max_execution_time = null, &$directory_cache = null ) {
$size = 0;
$directory = untrailingslashit( $directory );
$directory = untrailingslashit( $directory );
$cache_path = normalize_dirsize_cache_path( $directory );
$save_cache = false;

View File

@ -319,7 +319,7 @@ function create_initial_rest_routes() {
// Site Health
$site_health = WP_Site_Health::get_instance();
$controller = new WP_REST_Site_Health_Controller( $site_health );
$controller = new WP_REST_Site_Health_Controller( $site_health );
$controller->register_routes();
}

View File

@ -366,7 +366,7 @@ class WP_REST_Block_Types_Controller extends WP_REST_Controller {
'title' => 'block-type',
'type' => 'object',
'properties' => array(
'api_version' => array(
'api_version' => array(
'description' => __( 'Version of block API.' ),
'type' => 'integer',
'default' => 1,

View File

@ -186,7 +186,7 @@ class WP_REST_Site_Health_Controller extends WP_REST_Controller {
*/
public function get_directory_sizes() {
if ( ! class_exists( 'WP_Debug_Data' ) ) {
require_once( ABSPATH . 'wp-admin/includes/class-wp-debug-data.php' );
require_once ABSPATH . 'wp-admin/includes/class-wp-debug-data.php';
}
$sizes_data = WP_Debug_Data::get_sizes();

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.6-alpha-49224';
$wp_version = '5.6-alpha-49225';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.