- Timestamp:
- 10/12/2023 03:12:09 PM (16 months ago)
- Location:
- branches/5.6
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.6
- Property svn:mergeinfo changed
/trunk merged: 56833-56838
- Property svn:mergeinfo changed
-
branches/5.6/src/wp-includes/class-wp-block-patterns-registry.php
r49311 r56882 125 125 } 126 126 127 public function __wakeup() { 128 if ( ! $this->registered_patterns ) { 129 return; 130 } 131 if ( ! is_array( $this->registered_patterns ) ) { 132 throw new UnexpectedValueException(); 133 } 134 foreach ( $this->registered_patterns as $value ) { 135 if ( ! is_array( $value ) ) { 136 throw new UnexpectedValueException(); 137 } 138 } 139 $this->registered_patterns_outside_init = array(); 140 } 141 127 142 /** 128 143 * Utility method to retrieve the main instance of the class.
Note: See TracChangeset
for help on using the changeset viewer.