- Timestamp:
- 05/11/2021 07:40:41 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/Requests/Utility/FilteredIterator.php
r49382 r50842 40 40 public function current() { 41 41 $value = parent::current(); 42 $value = call_user_func($this->callback, $value); 42 43 if (is_callable($this->callback)) { 44 $value = call_user_func($this->callback, $value); 45 } 46 43 47 return $value; 44 48 } … … 47 51 * @inheritdoc 48 52 */ 49 public function unserialize( $serialized ) { 50 } 53 public function unserialize($serialized) {} 51 54 52 55 /** 53 56 * @inheritdoc 57 * 58 * @phpcs:disable PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.MethodDoubleUnderscore,PHPCompatibility.FunctionNameRestrictions.NewMagicMethods.__unserializeFound 54 59 */ 55 public function __unserialize( $serialized ) { // phpcs:ignore PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.MethodDoubleUnderscore,PHPCompatibility.FunctionNameRestrictions.NewMagicMethods.__unserializeFound 56 } 60 public function __unserialize($serialized) {} 57 61 58 public function __wakeup() { // phpcs:ignore PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.MethodDoubleUnderscore,PHPCompatibility.FunctionNameRestrictions.NewMagicMethods.__wakeupFound59 unset( $this->callback);62 public function __wakeup() { 63 unset($this->callback); 60 64 } 61 65 }
Note: See TracChangeset
for help on using the changeset viewer.