- Timestamp:
- 10/12/2023 03:14:45 PM (14 months ago)
- Location:
- branches/5.8
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.8
- Property svn:mergeinfo changed
/trunk merged: 56833-56838
- Property svn:mergeinfo changed
-
branches/5.8/src/wp-includes/class-wp-block-patterns-registry.php
r51154 r56884 140 140 } 141 141 142 public function __wakeup() { 143 if ( ! $this->registered_patterns ) { 144 return; 145 } 146 if ( ! is_array( $this->registered_patterns ) ) { 147 throw new UnexpectedValueException(); 148 } 149 foreach ( $this->registered_patterns as $value ) { 150 if ( ! is_array( $value ) ) { 151 throw new UnexpectedValueException(); 152 } 153 } 154 $this->registered_patterns_outside_init = array(); 155 } 156 142 157 /** 143 158 * Utility method to retrieve the main instance of the class.
Note: See TracChangeset
for help on using the changeset viewer.