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:
parent
123a965c70
commit
a8d80fd4a7
@ -2244,7 +2244,7 @@ function get_post_states( $post ) {
|
|||||||
* @return string Media states string.
|
* @return string Media states string.
|
||||||
*/
|
*/
|
||||||
function _media_states( $post, $echo = true ) {
|
function _media_states( $post, $echo = true ) {
|
||||||
$media_states = get_media_states( $post );
|
$media_states = get_media_states( $post );
|
||||||
$media_states_string = '';
|
$media_states_string = '';
|
||||||
|
|
||||||
if ( ! empty( $media_states ) ) {
|
if ( ! empty( $media_states ) ) {
|
||||||
|
@ -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 ) {
|
function recurse_dirsize( $directory, $exclude = null, $max_execution_time = null, &$directory_cache = null ) {
|
||||||
$size = 0;
|
$size = 0;
|
||||||
|
|
||||||
$directory = untrailingslashit( $directory );
|
$directory = untrailingslashit( $directory );
|
||||||
$cache_path = normalize_dirsize_cache_path( $directory );
|
$cache_path = normalize_dirsize_cache_path( $directory );
|
||||||
$save_cache = false;
|
$save_cache = false;
|
||||||
|
|
||||||
|
@ -319,7 +319,7 @@ function create_initial_rest_routes() {
|
|||||||
|
|
||||||
// Site Health
|
// Site Health
|
||||||
$site_health = WP_Site_Health::get_instance();
|
$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();
|
$controller->register_routes();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -366,7 +366,7 @@ class WP_REST_Block_Types_Controller extends WP_REST_Controller {
|
|||||||
'title' => 'block-type',
|
'title' => 'block-type',
|
||||||
'type' => 'object',
|
'type' => 'object',
|
||||||
'properties' => array(
|
'properties' => array(
|
||||||
'api_version' => array(
|
'api_version' => array(
|
||||||
'description' => __( 'Version of block API.' ),
|
'description' => __( 'Version of block API.' ),
|
||||||
'type' => 'integer',
|
'type' => 'integer',
|
||||||
'default' => 1,
|
'default' => 1,
|
||||||
|
@ -186,7 +186,7 @@ class WP_REST_Site_Health_Controller extends WP_REST_Controller {
|
|||||||
*/
|
*/
|
||||||
public function get_directory_sizes() {
|
public function get_directory_sizes() {
|
||||||
if ( ! class_exists( 'WP_Debug_Data' ) ) {
|
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();
|
$sizes_data = WP_Debug_Data::get_sizes();
|
||||||
|
Loading…
Reference in New Issue
Block a user