mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 23:58:03 +00:00
Coding Standards: Correct alignment in various files.
This fixes an `Array double arrow not aligned correctly` WPCS warning. Follow-up to [53075], [53084], [53091], [53094], [53155], [53129]. See #54728. git-svn-id: https://develop.svn.wordpress.org/trunk@53197 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1001,8 +1001,8 @@ function wp_generate_block_templates_export_file() {
|
||||
if ( $theme_json_raw['version'] ) {
|
||||
global $wp_version;
|
||||
$theme_json_version = 'wp/' . substr( $wp_version, 0, 3 );
|
||||
$schema = array( '$schema' => 'https://schemas.wp.org/' . $theme_json_version . '/theme.json' );
|
||||
$theme_json_raw = array_merge( $schema, $theme_json_raw );
|
||||
$schema = array( '$schema' => 'https://schemas.wp.org/' . $theme_json_version . '/theme.json' );
|
||||
$theme_json_raw = array_merge( $schema, $theme_json_raw );
|
||||
}
|
||||
|
||||
// Convert to a string.
|
||||
|
||||
@@ -1362,7 +1362,7 @@ function _wp_multiple_block_styles( $metadata ) {
|
||||
$style_uri = get_theme_file_uri( str_replace( $theme_path_norm, '', $style_path_norm ) );
|
||||
}
|
||||
|
||||
$args = array(
|
||||
$args = array(
|
||||
'handle' => sanitize_key( "{$metadata['name']}-{$style_path}" ),
|
||||
'src' => $style_uri,
|
||||
);
|
||||
|
||||
@@ -646,7 +646,7 @@ class WP_REST_Block_Types_Controller extends WP_REST_Controller {
|
||||
'context' => array( 'embed', 'view', 'edit' ),
|
||||
'readonly' => true,
|
||||
),
|
||||
'ancestor' => array(
|
||||
'ancestor' => array(
|
||||
'description' => __( 'Ancestor blocks.' ),
|
||||
'type' => array( 'array', 'null' ),
|
||||
'items' => array(
|
||||
|
||||
@@ -581,7 +581,7 @@ class WP_REST_Global_Styles_Controller extends WP_REST_Controller {
|
||||
}
|
||||
|
||||
if ( rest_is_field_included( 'styles', $fields ) ) {
|
||||
$raw_data = $theme->get_raw_data();
|
||||
$raw_data = $theme->get_raw_data();
|
||||
$data['styles'] = isset( $raw_data['styles'] ) ? $raw_data['styles'] : array();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user