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-renderer.php

    r48093 r48098  
    6060     * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
    6161     *
    62      * @return string The sitemap stylesheet url.
     62     * @return string The sitemap stylesheet URL.
    6363     */
    6464    public function get_sitemap_stylesheet_url() {
     
    7474         * Filters the URL for the sitemap stylesheet.
    7575         *
    76          * If a falsy value is returned, no stylesheet will be used and
     76         * If a falsey value is returned, no stylesheet will be used and
    7777         * the "raw" XML of the sitemap will be displayed.
    7878         *
    7979         * @since 5.5.0
    8080         *
    81          * @param string $sitemap_url Full URL for the sitemaps xsl file.
     81         * @param string $sitemap_url Full URL for the sitemaps XSL file.
    8282         */
    8383        return apply_filters( 'wp_sitemaps_stylesheet_url', $sitemap_url );
     
    9191     * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
    9292     *
    93      * @return string The sitemap index stylesheet url.
     93     * @return string The sitemap index stylesheet URL.
    9494     */
    9595    public function get_sitemap_index_stylesheet_url() {
     
    105105         * Filters the URL for the sitemap index stylesheet.
    106106         *
    107          * If a falsy value is returned, no stylesheet will be used and
     107         * If a falsey value is returned, no stylesheet will be used and
    108108         * the "raw" XML of the sitemap index will be displayed.
    109109         *
    110110         * @since 5.5.0
    111111         *
    112          * @param string $sitemap_url Full URL for the sitemaps index xsl file.
     112         * @param string $sitemap_url Full URL for the sitemaps index XSL file.
    113113         */
    114114        return apply_filters( 'wp_sitemaps_stylesheet_index_url', $sitemap_url );
Note: See TracChangeset for help on using the changeset viewer.