Changeset 60796
- Timestamp:
- 09/23/2025 07:26:03 PM (7 weeks ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 7 edited
-
class-wp-block-bindings-registry.php (modified) (2 diffs)
-
class-wp-block-bindings-source.php (modified) (2 diffs)
-
class-wp-block-patterns-registry.php (modified) (2 diffs)
-
class-wp-block-type-registry.php (modified) (2 diffs)
-
class-wp-theme.php (modified) (2 diffs)
-
html-api/class-wp-html-open-elements.php (modified) (2 diffs)
-
html-api/class-wp-html-token.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-block-bindings-registry.php
r59080 r60796 258 258 259 259 /** 260 * Wakeup magic method. 261 * 262 * @since 6.5.0 263 */ 264 public function __wakeup() { 260 * Unserialize magic method. 261 * 262 * @since 6.9.0 263 * 264 * @param array $data Data to unserialize. 265 */ 266 public function __unserialize( $data ) { // phpcs:ignore PHPCompatibility.FunctionNameRestrictions.NewMagicMethods.__unserializeFound 265 267 if ( ! $this->sources ) { 266 268 return; … … 277 279 278 280 /** 281 * Wakeup magic method. 282 * 283 * @since 6.5.0 284 */ 285 public function __wakeup() { 286 $this->__unserialize( array() ); 287 } 288 289 /** 279 290 * Utility method to retrieve the main instance of the class. 280 291 * -
trunk/src/wp-includes/class-wp-block-bindings-source.php
r58972 r60796 100 100 101 101 /** 102 * Unserialize magic method. 103 * 104 * @since 6.9.0 105 * 106 * @param array $data Data to unserialize. 107 */ 108 public function __unserialize( $data ) { // phpcs:ignore PHPCompatibility.FunctionNameRestrictions.NewMagicMethods.__unserializeFound 109 throw new \LogicException( __CLASS__ . ' should never be unserialized' ); 110 } 111 112 /** 102 113 * Wakeup magic method. 103 114 * … … 105 116 */ 106 117 public function __wakeup() { 107 throw new \LogicException( __CLASS__ . ' should never be unserialized');118 $this->__unserialize( array() ); 108 119 } 109 120 } -
trunk/src/wp-includes/class-wp-block-patterns-registry.php
r60275 r60796 246 246 } 247 247 248 public function __wakeup() { 248 /** 249 * Unserialize magic method. 250 * 251 * @since 6.9.0 252 * 253 * @param array $data Data to unserialize. 254 */ 255 public function __unserialize( $data ) { // phpcs:ignore PHPCompatibility.FunctionNameRestrictions.NewMagicMethods.__unserializeFound 249 256 if ( ! $this->registered_patterns ) { 250 257 return; … … 259 266 } 260 267 $this->registered_patterns_outside_init = array(); 268 } 269 270 /** 271 * Wakeup magic method. 272 * 273 * @since 6.4.0 274 */ 275 public function __wakeup() { 276 $this->__unserialize( array() ); 261 277 } 262 278 -
trunk/src/wp-includes/class-wp-block-type-registry.php
r56835 r60796 169 169 } 170 170 171 public function __wakeup() { 171 /** 172 * Unserialize magic method. 173 * 174 * @since 6.9.0 175 * 176 * @param array $data Data to unserialize. 177 */ 178 public function __unserialize( $data ) { // phpcs:ignore PHPCompatibility.FunctionNameRestrictions.NewMagicMethods.__unserializeFound 172 179 if ( ! $this->registered_block_types ) { 173 180 return; … … 184 191 185 192 /** 193 * Wakeup magic method. 194 * 195 * @since 6.4.0 196 */ 197 public function __wakeup() { 198 $this->__unserialize( array() ); 199 } 200 201 /** 186 202 * Utility method to retrieve the main instance of the class. 187 203 * -
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 -
trunk/src/wp-includes/html-api/class-wp-html-open-elements.php
r59391 r60796 843 843 844 844 /** 845 * Unserialize magic method. 846 * 847 * @since 6.9.0 848 * 849 * @param array $data Data to unserialize. 850 */ 851 public function __unserialize( $data ) { // phpcs:ignore PHPCompatibility.FunctionNameRestrictions.NewMagicMethods.__unserializeFound 852 throw new \LogicException( __CLASS__ . ' should never be unserialized' ); 853 } 854 855 /** 845 856 * Wakeup magic method. 846 857 * … … 848 859 */ 849 860 public function __wakeup() { 850 throw new \LogicException( __CLASS__ . ' should never be unserialized');861 $this->__unserialize( array() ); 851 862 } 852 863 } -
trunk/src/wp-includes/html-api/class-wp-html-token.php
r58867 r60796 117 117 118 118 /** 119 * Unserialize magic method. 120 * 121 * @since 6.9.0 122 * 123 * @param array $data Data to unserialize. 124 */ 125 public function __unserialize( $data ) { // phpcs:ignore PHPCompatibility.FunctionNameRestrictions.NewMagicMethods.__unserializeFound 126 throw new \LogicException( __CLASS__ . ' should never be unserialized' ); 127 } 128 129 /** 119 130 * Wakeup magic method. 120 131 * … … 122 133 */ 123 134 public function __wakeup() { 124 throw new \LogicException( __CLASS__ . ' should never be unserialized');135 $this->__unserialize( array() ); 125 136 } 126 137 }
Note: See TracChangeset
for help on using the changeset viewer.