- Timestamp:
- 10/12/2023 03:04:07 PM (2 years ago)
- Location:
- branches/5.2
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/class-wp-block-type-registry.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/5.2
- Property svn:mergeinfo changed
/trunk merged: 56833-56836,56838
- Property svn:mergeinfo changed
-
branches/5.2/src/wp-includes/class-wp-block-type-registry.php
r44108 r56876 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.