--- a/wp/wp-includes/class-simplepie.php Thu Sep 29 08:06:27 2022 +0200
+++ b/wp/wp-includes/class-simplepie.php Fri Sep 05 18:40:08 2025 +0200
@@ -20,9 +20,11 @@
* WordPress autoloader for SimplePie.
*
* @since 3.5.0
+ *
+ * @param string $class Class name.
*/
function wp_simplepie_autoload( $class ) {
- if ( 0 !== strpos( $class, 'SimplePie_' ) )
+ if ( ! str_starts_with( $class, 'SimplePie_' ) )
return;
$file = ABSPATH . WPINC . '/' . str_replace( '_', '/', $class ) . '.php';
@@ -338,7 +340,6 @@
/**
* RSS 2.0 Namespace
- * (Stupid, I know, but I'm certain it will confuse people less with support.)
*/
define('SIMPLEPIE_NAMESPACE_RSS_20', '');
@@ -1203,12 +1204,12 @@
}
/**
- * Set options to make SP as fast as possible
+ * Set options to make SimplePie as fast as possible.
*
- * Forgoes a substantial amount of data sanitization in favor of speed. This
- * turns SimplePie into a dumb parser of feeds.
+ * Forgoes a substantial amount of data sanitization in favor of speed.
+ * This turns SimplePie into a less clever parser of feeds.
*
- * @param bool $set Whether to set them or not
+ * @param bool $set Whether to set them or not.
*/
public function set_stupidly_fast($set = false)
{
@@ -1864,7 +1865,7 @@
}
/**
- * Send the content-type header with correct encoding
+ * Send the Content-Type header with correct encoding
*
* This method ensures that the SimplePie-enabled page is being served with
* the correct {@link http://www.iana.org/assignments/media-types/ mime-type}
@@ -1886,7 +1887,7 @@
{
if (!headers_sent())
{
- $header = "Content-type: $mime;";
+ $header = "Content-Type: $mime;";
if ($this->get_encoding())
{
$header .= ' charset=' . $this->get_encoding();