wp/wp-includes/class-wp-simplepie-file.php
changeset 21 48c4eec2b7e6
parent 18 be944660c56a
child 22 8c2e4d02f4ef
--- a/wp/wp-includes/class-wp-simplepie-file.php	Thu Sep 29 08:06:27 2022 +0200
+++ b/wp/wp-includes/class-wp-simplepie-file.php	Fri Sep 05 18:40:08 2025 +0200
@@ -14,12 +14,18 @@
  * to hook into the process.
  *
  * @since 2.8.0
- *
- * @see SimplePie_File
  */
+#[AllowDynamicProperties]
 class WP_SimplePie_File extends SimplePie_File {
 
 	/**
+	 * Timeout.
+	 *
+	 * @var int How long the connection should stay open in seconds.
+	 */
+	public $timeout = 10;
+
+	/**
 	 * Constructor.
 	 *
 	 * @since 2.8.0
@@ -56,7 +62,7 @@
 				$args['headers'] = $this->headers;
 			}
 
-			if ( SIMPLEPIE_USERAGENT != $this->useragent ) { // Use default WP user agent unless custom has been specified.
+			if ( SIMPLEPIE_USERAGENT !== $this->useragent ) { // Use default WP user agent unless custom has been specified.
 				$args['user-agent'] = $this->useragent;
 			}