- Timestamp:
- 02/09/2024 10:52:09 AM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-block-bindings-registry.php
r57562 r57575 213 213 214 214 /** 215 * Wakeup magic method. 216 * 217 * @since 6.5.0 218 */ 219 public function __wakeup() { 220 if ( ! $this->sources ) { 221 return; 222 } 223 if ( ! is_array( $this->sources ) ) { 224 throw new UnexpectedValueException(); 225 } 226 foreach ( $this->sources as $value ) { 227 if ( ! $value instanceof WP_Block_Bindings_Source ) { 228 throw new UnexpectedValueException(); 229 } 230 } 231 } 232 233 /** 215 234 * Utility method to retrieve the main instance of the class. 216 235 *
Note: See TracChangeset
for help on using the changeset viewer.