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