Skip to content

Commit

Permalink
Coding Standards: Correct some minor coding standards issues.
Browse files Browse the repository at this point in the history
Introduced in [49154], [49212], [49223], and [49224].

git-svn-id: https://develop.svn.wordpress.org/trunk@49225 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
desrosj committed Oct 20, 2020
1 parent 123a965 commit a8d80fd
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/wp-admin/includes/template.php
Expand Up @@ -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 ) ) {
Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/functions.php
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/rest-api.php
Expand Up @@ -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();
}

Expand Down
Expand Up @@ -366,7 +366,7 @@ public function get_item_schema() {
'title' => 'block-type',
'type' => 'object',
'properties' => array(
'api_version' => array(
'api_version' => array(
'description' => __( 'Version of block API.' ),
'type' => 'integer',
'default' => 1,
Expand Down
Expand Up @@ -186,7 +186,7 @@ public function test_loopback_requests() {
*/
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();
Expand Down

0 comments on commit a8d80fd

Please sign in to comment.