admin-pages
1 year ago
core-api
1 year ago
debugger
1 year ago
markdown
1 year ago
class-jetpack-ai-helper.php
1 year ago
class-jetpack-currencies.php
2 years ago
class-jetpack-instagram-gallery-helper.php
2 years ago
class-jetpack-mapbox-helper.php
3 years ago
class-jetpack-podcast-feed-locator.php
1 year ago
class-jetpack-podcast-helper.php
1 year ago
class-jetpack-recommendations.php
2 years ago
class-jetpack-top-posts-helper.php
2 years ago
class-unauth-file-upload-handler.php
1 year ago
class.color.php
2 years ago
class.core-rest-api-endpoints.php
1 year ago
class.jetpack-automatic-install-skin.php
2 years ago
class.jetpack-iframe-embed.php
3 years ago
class.jetpack-password-checker.php
2 years ago
class.jetpack-search-performance-logger.php
4 years ago
class.media-extractor.php
2 years ago
class.media-summary.php
1 year ago
class.media.php
2 years ago
components.php
3 years ago
debugger.php
2 years ago
forms-integration.php
1 year ago
functions.wp-notify.php
1 year ago
icalendar-reader.php
1 year ago
jp-simplepie-alias-new.php
1 year ago
jp-simplepie-alias-old.php
1 year ago
jp-simplepie-alias.php
1 year ago
markdown.php
3 years ago
plans.php
4 years ago
plugins.php
4 years ago
tonesque.php
2 years ago
widgets.php
2 years ago
jp-simplepie-alias.php
24 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Class aliases for SimplePie. |
| 4 | * |
| 5 | * Core renamed the classes in 6.7, and for type declarations and such to work right we need to use the correct names. |
| 6 | * This selects the correct alias file for the current version of WordPress. |
| 7 | * |
| 8 | * @todo Remove this once we drop support for WordPress 6.6 |
| 9 | * |
| 10 | * @package automattic/jetpack |
| 11 | */ |
| 12 | |
| 13 | if ( ! defined( 'ABSPATH' ) ) { |
| 14 | return; |
| 15 | } |
| 16 | |
| 17 | require_once ABSPATH . '/wp-includes/class-simplepie.php'; |
| 18 | // @phan-suppress-next-line PhanUndeclaredClassReference -- Being tested for. @phan-suppress-current-line UnusedPluginSuppression |
| 19 | if ( class_exists( SimplePie\SimplePie::class ) ) { |
| 20 | require_once __DIR__ . '/jp-simplepie-alias-new.php'; |
| 21 | } else { |
| 22 | require_once __DIR__ . '/jp-simplepie-alias-old.php'; |
| 23 | } |
| 24 |