Make WordPress Core


Ignore:
Timestamp:
06/01/2021 08:07:07 AM (5 years ago)
Author:
youknowriad
Message:

Block Editor: Update packages and backport the latest Gutenberg fixes.

This includes the following fixes:

Props nosolosw, noisysocks.
See #52991.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/block-supports/elements.php

    r50945 r51051  
    1818 */
    1919function wp_render_elements_support( $block_content, $block ) {
    20     $link_color = _wp_array_get( $block['attrs'], array( 'style', 'elements', 'link', 'color', 'text' ), null );
     20    $link_color = null;
     21    if ( ! empty( $block['attrs'] ) ) {
     22        $link_color = _wp_array_get( $block['attrs'], array( 'style', 'elements', 'link', 'color', 'text' ), null );
     23    }
    2124
    2225    /*
Note: See TracChangeset for help on using the changeset viewer.