WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/12/2020 08:18:08 PM (11 months ago)
Author:
johnbillion
Message:

General: Convert wp_array_get() to a "private" function and add tests.

This function may be promoted in the future if it's deemed useful enough.

Props dd32, jorgefilipecosta, Hareesh Pillai

Fixes #51720

File:
1 edited

Legend:

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

    r49226 r49580  
    4848    $attributes                      = array();
    4949    if ( property_exists( $block_type, 'supports' ) ) {
    50         $has_generated_classname_support = wp_array_get( $block_type->supports, array( 'className' ), true );
     50        $has_generated_classname_support = _wp_array_get( $block_type->supports, array( 'className' ), true );
    5151    }
    5252    if ( $has_generated_classname_support ) {
Note: See TracChangeset for help on using the changeset viewer.