Coding Standards: Correct some minor coding standards issues.

Introduced in [49154], [49212], [49223], and [49224].

git-svn-id: https://develop.svn.wordpress.org/trunk@49225 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jonathan Desrosiers 2020-10-20 13:27:48 +00:00
parent 123a965c70
commit a8d80fd4a7
5 changed files with 5 additions and 5 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();