Skip to content

Commit

Permalink
Update second call to _wp_array_get
Browse files Browse the repository at this point in the history
  • Loading branch information
glendaviesnz committed Jan 19, 2023
1 parent 474d634 commit 70a2e72
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/block-supports/shadow.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,8 @@ function gutenberg_register_shadow_support( $block_type ) {
* @return array Shadow CSS classes and inline styles.
*/
function gutenberg_apply_shadow_support( $block_type, $block_attributes ) {
if ( ! property_exists( $block_type, 'supports' ) ) {
return array();
}
$has_shadow_support = block_has_support( $block_type, array( 'shadow' ), false );

$has_shadow_support = _wp_array_get( $block_type->supports, array( 'shadow' ), false );
if ( ! $has_shadow_support ) {
return array();
}
Expand Down

0 comments on commit 70a2e72

Please sign in to comment.