Make WordPress Core


Ignore:
Timestamp:
06/19/2020 10:24:14 PM (4 years ago)
Author:
johnbillion
Message:

Docs: Corrections and improvements to inline docs related to XML sitemaps.

See #50117, #49572

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/sitemaps/class-wp-sitemaps-stylesheet.php

    r48081 r48098  
    1717class WP_Sitemaps_Stylesheet {
    1818    /**
    19      * Renders the xsl stylesheet depending on whether its the sitemap index or not.
     19     * Renders the XSL stylesheet depending on whether it's the sitemap index or not.
    2020     *
    2121     * @param string $type Stylesheet type. Either 'sitemap' or 'index'.
     
    3838
    3939    /**
    40      * Returns the escaped xsl for all sitemaps, except index.
     40     * Returns the escaped XSL for all sitemaps, except index.
    4141     *
    4242     * @since 5.5.0
     
    142142         * @since 5.5.0
    143143         *
    144          * @param string $xsl Full content for the xml stylesheet.
     144         * @param string $xsl_content Full content for the XML stylesheet.
    145145         */
    146146        return apply_filters( 'wp_sitemaps_stylesheet_content', $xsl_content );
     
    148148
    149149    /**
    150      * Returns the escaped xsl for the index sitemaps.
     150     * Returns the escaped XSL for the index sitemaps.
    151151     *
    152152     * @since 5.5.0
     
    236236         * @since 5.5.0
    237237         *
    238          * @param string $xsl Full content for the xml stylesheet.
     238         * @param string $xsl_content Full content for the XML stylesheet.
    239239         */
    240240        return apply_filters( 'wp_sitemaps_stylesheet_index_content', $xsl_content );
     
    278278
    279279        /**
    280          * Filters the css only for the sitemap stylesheet.
     280         * Filters the CSS only for the sitemap stylesheet.
    281281         *
    282282         * @since 5.5.0
    283283         *
    284          * @param string $css CSS to be applied to default xsl file.
     284         * @param string $css CSS to be applied to default XSL file.
    285285         */
    286286        return apply_filters( 'wp_sitemaps_stylesheet_css', $css );
Note: See TracChangeset for help on using the changeset viewer.