Make WordPress Core


Ignore:
Timestamp:
09/29/2025 04:28:00 PM (10 months ago)
Author:
swissspidy
Message:

Code Modernization: Fix instances of using null as an array offset.

Addresses a new deprecation in PHP 8.5.

Props swissspidy.
Fixes #63957.

File:
1 edited

Legend:

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

    r60807 r60809  
    149149
    150150        $supported_block_attributes =
    151                 $block_bindings_supported_attributes[ $block_type ] ??
    152                 array();
     151                isset( $block_type, $block_bindings_supported_attributes[ $block_type ] ) ?
     152                        $block_bindings_supported_attributes[ $block_type ] :
     153                        array();
    153154
    154155        /**
Note: See TracChangeset for help on using the changeset viewer.