Make WordPress Core


Ignore:
Timestamp:
09/26/2023 02:20:18 PM (2 years ago)
Author:
karmatosed
Message:

Update editor related npm packages

The npm packages needed updating for 6.4 to the latest.

Props mikachan, mukesdpanchal27, luisherranz, youknowriad, tellthemachines, gziolo, ockham, michalczaplinski

Fixes #59411

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks/avatar.php

    r56065 r56710  
    113113    // Border color.
    114114    $preset_color           = array_key_exists( 'borderColor', $attributes ) ? "var:preset|color|{$attributes['borderColor']}" : null;
    115     $custom_color           = _wp_array_get( $attributes, array( 'style', 'border', 'color' ), null );
     115    $custom_color           = $attributes['style']['border']['color'] ?? null;
    116116    $border_styles['color'] = $preset_color ? $preset_color : $custom_color;
    117117
    118118    // Individual border styles e.g. top, left etc.
    119119    foreach ( $sides as $side ) {
    120         $border                 = _wp_array_get( $attributes, array( 'style', 'border', $side ), null );
     120        $border                 = $attributes['style']['border'][ $side ] ?? null;
    121121        $border_styles[ $side ] = array(
    122122            'color' => isset( $border['color'] ) ? $border['color'] : null,
Note: See TracChangeset for help on using the changeset viewer.