Make WordPress Core


Ignore:
Timestamp:
12/20/2021 07:31:37 PM (3 years ago)
Author:
SergeyBiryukov
Message:

External Libraries: Update the SimplePie library to version 1.5.7.

This version shows significant improvements in the compatibility of SimplePie with PHP 8.0, 8.1, and even contains an initial PHP 8.2 fix. The release also contains a number of other bug fixes.

Release notes: https://github.com/simplepie/simplepie/releases/tag/1.5.7

For a full list of changes in this update, see the SimplePie GitHub:
https://github.com/simplepie/simplepie/compare/1.5.6...1.5.7

Follow-up to [47733], [49176].

Props jrf, SergeyBiryukov.
Fixes #54659.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/SimplePie/Misc.php

    r49176 r52393  
    22612261        // No-op
    22622262    }
     2263
     2264    /**
     2265     * Sanitize a URL by removing HTTP credentials.
     2266     * @param string $url the URL to sanitize.
     2267     * @return string the same URL without HTTP credentials.
     2268     */
     2269    public static function url_remove_credentials($url)
     2270    {
     2271        return preg_replace('#^(https?://)[^/:@]+:[^/:@]+@#i', '$1', $url);
     2272    }
    22632273}
Note: See TracChangeset for help on using the changeset viewer.