Changeset 56835 for trunk/src/wp-includes/class-wp-block-type-registry.php
- Timestamp:
- 10/12/2023 12:32:43 PM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-block-type-registry.php
r54133 r56835 169 169 } 170 170 171 public function __wakeup() { 172 if ( ! $this->registered_block_types ) { 173 return; 174 } 175 if ( ! is_array( $this->registered_block_types ) ) { 176 throw new UnexpectedValueException(); 177 } 178 foreach ( $this->registered_block_types as $value ) { 179 if ( ! $value instanceof WP_Block_Type ) { 180 throw new UnexpectedValueException(); 181 } 182 } 183 } 184 171 185 /** 172 186 * Utility method to retrieve the main instance of the class.
Note: See TracChangeset
for help on using the changeset viewer.