--- a/wp/wp-includes/class-wp-simplepie-file.php Fri Sep 05 18:40:08 2025 +0200
+++ b/wp/wp-includes/class-wp-simplepie-file.php Fri Sep 05 18:52:52 2025 +0200
@@ -16,7 +16,7 @@
* @since 2.8.0
*/
#[AllowDynamicProperties]
-class WP_SimplePie_File extends SimplePie_File {
+class WP_SimplePie_File extends SimplePie\File {
/**
* Timeout.
@@ -50,7 +50,7 @@
$this->headers = $headers;
$this->useragent = $useragent;
- $this->method = SIMPLEPIE_FILE_SOURCE_REMOTE;
+ $this->method = SimplePie\SimplePie::FILE_SOURCE_REMOTE;
if ( preg_match( '/^http(s)?:\/\//i', $url ) ) {
$args = array(
@@ -62,7 +62,7 @@
$args['headers'] = $this->headers;
}
- if ( SIMPLEPIE_USERAGENT !== $this->useragent ) { // Use default WP user agent unless custom has been specified.
+ if ( SimplePie\Misc::get_default_useragent() !== $this->useragent ) { // Use default WP user agent unless custom has been specified.
$args['user-agent'] = $this->useragent;
}
@@ -83,7 +83,7 @@
* The only exception to that is the `content-type` header, which should ignore
* any previous values and only use the last one.
*
- * @see SimplePie_HTTP_Parser::new_line().
+ * @see SimplePie\HTTP\Parser::new_line().
*/
foreach ( $this->headers as $name => $value ) {
if ( ! is_array( $value ) ) {