← All changes
|
modules/sitemaps/sitemap-buffer-video-fallback.php
+6
-0
12.7.3
→
16.3-a.1
View file →
| @@ -9,14 +9,20 @@ | ||
| 9 | 9 | * @since 5.3.0 |
| 10 | 10 | * @package automattic/jetpack |
| 11 | 11 | */ |
| 12 | 12 | |
| 13 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 14 | + exit( 0 ); | |
| 15 | +} | |
| 16 | + | |
| 13 | 17 | /** |
| 14 | 18 | * A buffer for constructing sitemap video xml files for users without libxml support. |
| 15 | 19 | * |
| 16 | 20 | * @since 5.3.0 |
| 21 | + * @phan-suppress PhanRedefinedClassReference -- Don't conflict with real version. | |
| 17 | 22 | */ |
| 18 | 23 | class Jetpack_Sitemap_Buffer_Video extends Jetpack_Sitemap_Buffer_Fallback { |
| 24 | + // @phan-suppress-previous-line UnusedSuppression -- It's used. | |
| 19 | 25 | /** |
| 20 | 26 | * Returns a DOM element that contains all video sitemap elements. |
| 21 | 27 | */ |
| 22 | 28 | protected function get_root_element() { |