Changeset 60796 for trunk/src/wp-includes/class-wp-theme.php
- Timestamp:
- 09/23/2025 07:26:03 PM (3 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp-theme.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-theme.php
r60142 r60796 784 784 * 785 785 * Prevents a callback from being injected during unserialization of an object. 786 */ 787 public function __wakeup() { 786 * 787 * @since 6.9.0 788 * 789 * @param array $data Data to unserialize. 790 */ 791 public function __unserialize( $data ) { // phpcs:ignore PHPCompatibility.FunctionNameRestrictions.NewMagicMethods.__unserializeFound 788 792 if ( $this->parent && ! $this->parent instanceof self ) { 789 793 throw new UnexpectedValueException(); … … 798 802 } 799 803 $this->headers_sanitized = array(); 804 } 805 806 /** 807 * Wakeup magic method. 808 * 809 * @since 6.4.0 810 */ 811 public function __wakeup() { 812 $this->__unserialize( array() ); 800 813 } 801 814
Note: See TracChangeset
for help on using the changeset viewer.