Make WordPress Core


Ignore:
Timestamp:
06/14/2021 11:43:21 PM (3 years ago)
Author:
desrosj
Message:

Editor: Replace a Gutenberg specific function with the Core equivalent.

This replaces a stray instance of gutenberg_experimental_set() with the WordPress Core version of this function, _wp_array_set().

A stray gutenberg text domain is also removed from a __() call.

Props walbo, chaion07, JeffPaul.
Fixes #53369.

File:
1 edited

Legend:

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

    r51102 r51148  
    989989            trigger_error(
    990990                /* translators: %1$s: Block type, %2$s: typography supports key e.g: fontSize, lineHeight etc... */
    991                 sprintf( __( 'Block %1$s is declaring %2$s support on block.json under supports.%2$s. %2$s support is now declared under supports.typography.%2$s.', 'gutenberg' ), $metadata['name'], $typography_key ),
     991                sprintf( __( 'Block %1$s is declaring %2$s support on block.json under supports.%2$s. %2$s support is now declared under supports.typography.%2$s.' ), $metadata['name'], $typography_key ),
    992992                headers_sent() || WP_DEBUG ? E_USER_WARNING : E_USER_NOTICE
    993993            );
    994             gutenberg_experimental_set( $metadata['supports'], array( 'typography', $typography_key ), $support_for_key );
     994            _wp_array_set( $metadata['supports'], array( 'typography', $typography_key ), $support_for_key );
    995995            unset( $metadata['supports'][ $typography_key ] );
    996996        }
Note: See TracChangeset for help on using the changeset viewer.