Skip to content

Commit

Permalink
Coding Standards: Various alignment fixes from composer format.
Browse files Browse the repository at this point in the history
Follow up to [53874], [54097], [54110], [54155], [54162], [54184].

See #39210, #55443, #56288, #56092, #56408, #56467, #55881.
Built from https://develop.svn.wordpress.org/trunk@54210


git-svn-id: http://core.svn.wordpress.org/trunk@53769 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
desrosj committed Sep 19, 2022
1 parent 0fe6115 commit 1966add
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions wp-includes/block-editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ function get_block_editor_settings( array $custom_settings, $block_editor_contex
$actual_css = wp_get_global_stylesheet( array( $block_classes['css'] ) );
if ( '' !== $actual_css ) {
$block_classes['css'] = $actual_css;
$global_styles[] = $block_classes;
$global_styles[] = $block_classes;
}
}

Expand Down Expand Up @@ -493,7 +493,7 @@ function get_block_editor_settings( array $custom_settings, $block_editor_contex
}

if ( isset( $editor_settings['__experimentalFeatures']['spacing']['spacingSizes'] ) ) {
$spacing_sizes_by_origin = $editor_settings['__experimentalFeatures']['spacing']['spacingSizes'];
$spacing_sizes_by_origin = $editor_settings['__experimentalFeatures']['spacing']['spacingSizes'];
$editor_settings['spacingSizes'] = isset( $spacing_sizes_by_origin['custom'] ) ?
$spacing_sizes_by_origin['custom'] : (
isset( $spacing_sizes_by_origin['theme'] ) ?
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/block-template-utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ function _build_block_template_result_from_post( $post ) {
}

$theme = $terms[0]->name;
$template_file = _get_block_template_file( $post->post_type, $post->post_name );
$template_file = _get_block_template_file( $post->post_type, $post->post_name );
$has_theme_file = wp_get_theme()->get_stylesheet() === $theme && null !== $template_file;

$origin = get_post_meta( $post->ID, 'origin', true );
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/class-wp-block-type.php
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ public function __set( $name, $value ) {
return;
}

$new_name = $name . '_handles';
$new_name = $name . '_handles';
$this->{$new_name}[0] = $value;
}

Expand Down
2 changes: 1 addition & 1 deletion wp-includes/class-wp-image-editor-gd.php
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ public function make_subsize( $size_data ) {
imagedestroy( $resized );
}

$this->size = $orig_size;
$this->size = $orig_size;
$this->size_name = $orig_size_name;

if ( ! is_wp_error( $saved ) ) {
Expand Down
4 changes: 2 additions & 2 deletions wp-includes/cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -1127,9 +1127,9 @@ function wp_get_ready_cron_jobs() {
return $pre;
}

$crons = _get_cron_array();
$crons = _get_cron_array();
$gmt_time = microtime( true );
$results = array();
$results = array();

foreach ( $crons as $timestamp => $cronhooks ) {
if ( $timestamp > $gmt_time ) {
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/l10n.php
Original file line number Diff line number Diff line change
Expand Up @@ -1270,7 +1270,7 @@ function _load_textdomain_just_in_time( $domain ) {
}

$locale = determine_locale();
$path = $wp_textdomain_registry->get( $domain, $locale );
$path = $wp_textdomain_registry->get( $domain, $locale );
if ( ! $path ) {
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ public function prepare_item_for_response( $item, $request ) {
$data['is_dynamic'] = $block_type->is_dynamic();
}

$schema = $this->get_item_schema();
$schema = $this->get_item_schema();
// Fields deprecated in WordPress 6.1, but left in the schema for backwards compatibility.
$deprecated_fields = array(
'editor_script',
Expand Down Expand Up @@ -688,13 +688,13 @@ public function get_item_schema() {
'context' => array( 'embed', 'view', 'edit' ),
'readonly' => true,
),
'keywords' => $keywords_definition,
'example' => $example_definition,
'keywords' => $keywords_definition,
'example' => $example_definition,
),
);

// Properties deprecated in WordPress 6.1, but left in the schema for backwards compatibility.
$deprecated_properties = array(
$deprecated_properties = array(
'editor_script' => array(
'description' => __( 'Editor script handle. DEPRECATED: Use `editor_script_handles` instead.' ),
'type' => array( 'string', 'null' ),
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.1-alpha-54209';
$wp_version = '6.1-alpha-54210';

/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
Expand Down

0 comments on commit 1966add

Please sign in to comment.