[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/sitemaps/ -> class-wp-sitemaps-stylesheet.php (source)

   1  <?php
   2  /**
   3   * Sitemaps: WP_Sitemaps_Stylesheet class
   4   *
   5   * This class is retained for backward compatibility.
   6   *
   7   * @package WordPress
   8   * @subpackage Sitemaps
   9   * @since 5.5.0
  10   * @deprecated 7.2.0 Stylesheets are no longer supported.
  11   */
  12  
  13  /**
  14   * Stylesheet provider class.
  15   *
  16   * @since 5.5.0
  17   * @deprecated 7.2.0 Stylesheets are no longer supported.
  18   */
  19  #[AllowDynamicProperties]
  20  class WP_Sitemaps_Stylesheet {
  21      /**
  22       * Renders the XSL stylesheet depending on whether it's the sitemap index or not.
  23       *
  24       * @since 5.5.0
  25       * @deprecated 7.2.0 Stylesheets are no longer supported.
  26       *
  27       * @param string $type Stylesheet type. Either 'sitemap' or 'index'.
  28       * @return never
  29       */
  30  	public function render_stylesheet( $type ) {
  31          unset( $type );
  32          status_header( 410 );
  33          _deprecated_function( __METHOD__, '7.2.0' );
  34          exit;
  35      }
  36  
  37      /**
  38       * Returns the escaped XSL for all sitemaps, except index.
  39       *
  40       * @since 5.5.0
  41       * @deprecated 7.2.0 Stylesheets are no longer supported.
  42       *
  43       * @return string Empty string.
  44       */
  45  	public function get_sitemap_stylesheet() {
  46          _deprecated_function( __METHOD__, '7.2.0' );
  47          return '';
  48      }
  49  
  50      /**
  51       * Returns the escaped XSL for the index sitemaps.
  52       *
  53       * @since 5.5.0
  54       * @deprecated 7.2.0 Stylesheets are no longer supported.
  55       *
  56       * @return string Empty string.
  57       */
  58  	public function get_sitemap_index_stylesheet() {
  59          _deprecated_function( __METHOD__, '7.2.0' );
  60          return '';
  61      }
  62  
  63      /**
  64       * Gets the CSS to be included in sitemap XSL stylesheets.
  65       *
  66       * @since 5.5.0
  67       * @deprecated 7.2.0 Stylesheets are no longer supported.
  68       *
  69       * @return string Empty string.
  70       */
  71  	public function get_stylesheet_css() {
  72          _deprecated_function( __METHOD__, '7.2.0' );
  73  
  74          /**
  75           * Filters the CSS only for the sitemap stylesheet.
  76           *
  77           * Following the deprecation of XSLT by browser manufacturers the
  78           * outcome of this filter is ignored.
  79           *
  80           * @since 5.5.0
  81           * @deprecated 7.2.0 Stylesheets are no longer supported.
  82           *
  83           * @param string $css CSS to be applied to default XSL file.
  84           */
  85          apply_filters_deprecated( 'wp_sitemaps_stylesheet_css', array( '' ), '7.2.0' );
  86  
  87          return '';
  88      }
  89  }


Generated : Thu Oct 22 08:20:34 2026 Cross-referenced by PHPXref