Skip to content

Commit 1596aed

Browse files
author
wordpress-develop-pr-bot[bot]
committed
Automation: Updating built files with changes.
1 parent ceb6bd2 commit 1596aed

File tree

9 files changed

+2
-28
lines changed

9 files changed

+2
-28
lines changed

src/wp-includes/Requests/src/Hooks.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,4 @@ public function dispatch($hook, $parameters = []) {
9696

9797
return true;
9898
}
99-
100-
public function __wakeup() {
101-
throw new \LogicException( __CLASS__ . ' should never be unserialized' );
102-
}
10399
}

src/wp-includes/Requests/src/Iri.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -717,20 +717,6 @@ public function is_valid() {
717717
return true;
718718
}
719719

720-
public function __wakeup() {
721-
$class_props = get_class_vars( __CLASS__ );
722-
$string_props = array( 'scheme', 'iuserinfo', 'ihost', 'port', 'ipath', 'iquery', 'ifragment' );
723-
$array_props = array( 'normalization' );
724-
foreach ( $class_props as $prop => $default_value ) {
725-
if ( in_array( $prop, $string_props, true ) && ! is_string( $this->$prop ) ) {
726-
throw new UnexpectedValueException();
727-
} elseif ( in_array( $prop, $array_props, true ) && ! is_array( $this->$prop ) ) {
728-
throw new UnexpectedValueException();
729-
}
730-
$this->$prop = null;
731-
}
732-
}
733-
734720
/**
735721
* Set the entire IRI. Returns true on success, false on failure (if there
736722
* are any invalid characters).

src/wp-includes/Requests/src/Session.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,10 +265,6 @@ public function request_multiple($requests, $options = []) {
265265
return Requests::request_multiple($requests, $options);
266266
}
267267

268-
public function __wakeup() {
269-
throw new \LogicException( __CLASS__ . ' should never be unserialized' );
270-
}
271-
272268
/**
273269
* Merge a request's data with the default data
274270
*

src/wp-includes/SimplePie/library/SimplePie.php

100644100755
File mode changed.

src/wp-includes/SimplePie/library/SimplePie/Cache/Memcached.php

100644100755
File mode changed.

src/wp-includes/SimplePie/library/SimplePie/Registry.php

100644100755
File mode changed.

src/wp-includes/SimplePie/src/Cache/Memcached.php

100755100644
File mode changed.

src/wp-includes/SimplePie/src/IRI.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public function __get(string $name)
170170
$return = null;
171171
}
172172

173-
if ($return === null && isset($this->scheme, $this->normalization[$this->scheme][$name])) {
173+
if ($return === null && isset($this->normalization[$this->scheme][$name])) {
174174
return $this->normalization[$this->scheme][$name];
175175
}
176176

@@ -623,10 +623,6 @@ protected function remove_iunreserved_percent_encoded(array $match)
623623
*/
624624
protected function scheme_normalization()
625625
{
626-
if ($this->scheme === null) {
627-
return;
628-
}
629-
630626
if (isset($this->normalization[$this->scheme]['iuserinfo']) && $this->iuserinfo === $this->normalization[$this->scheme]['iuserinfo']) {
631627
$this->iuserinfo = null;
632628
}

src/wp-includes/SimplePie/src/SimplePie.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3306,7 +3306,7 @@ public function __call(string $method, array $args)
33063306
}
33073307

33083308
$class = get_class($this);
3309-
$trace = debug_backtrace(); // phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection
3309+
$trace = debug_backtrace();
33103310
$file = $trace[0]['file'] ?? '';
33113311
$line = $trace[0]['line'] ?? '';
33123312
throw new SimplePieException("Call to undefined method $class::$method() in $file on line $line");

0 commit comments

Comments
 (0)