- Timestamp:
- 10/12/2023 03:15:04 PM (17 months ago)
- Location:
- branches/5.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.7
- Property svn:mergeinfo changed
/trunk merged: 56833-56838
- Property svn:mergeinfo changed
-
branches/5.7/src/wp-includes/class-wp-block-type-registry.php
r50419 r56886 153 153 } 154 154 155 public function __wakeup() { 156 if ( ! $this->registered_block_types ) { 157 return; 158 } 159 if ( ! is_array( $this->registered_block_types ) ) { 160 throw new UnexpectedValueException(); 161 } 162 foreach ( $this->registered_block_types as $value ) { 163 if ( ! $value instanceof WP_Block_Type ) { 164 throw new UnexpectedValueException(); 165 } 166 } 167 } 168 155 169 /** 156 170 * Utility method to retrieve the main instance of the class.
Note: See TracChangeset
for help on using the changeset viewer.