Make WordPress Core


Ignore:
Timestamp:
06/18/2020 02:43:31 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Fix WPCS issues in wp-includes/sitemaps/.

Some of these were not caught when running composer lint:errors, but are fixed when running phpcbf directly.

Follow-up to [48072], [48080].

See #49542, #50117.

File:
1 edited

Legend:

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

    r48072 r48081  
    5353
    5454        $text = sprintf(
    55             /* translators: %s: number of URLs. */
     55            /* translators: %s: Number of URLs. */
    5656            esc_xml( __( 'Number of URLs in this XML Sitemap: %s.' ) ),
    5757            '<xsl:value-of select="count( sitemap:urlset/sitemap:url )" />'
     
    153153     */
    154154    public function get_sitemap_index_stylesheet() {
    155         $css           = $this->get_stylesheet_css();
    156         $title         = esc_xml( __( 'XML Sitemap' ) );
    157         $description   = esc_xml( __( 'This XML Sitemap is generated by WordPress to make your content more visible for search engines.' ) );
    158         $learn_more    = sprintf(
     155        $css         = $this->get_stylesheet_css();
     156        $title       = esc_xml( __( 'XML Sitemap' ) );
     157        $description = esc_xml( __( 'This XML Sitemap is generated by WordPress to make your content more visible for search engines.' ) );
     158        $learn_more  = sprintf(
    159159            '<a href="%s">%s</a>',
    160160            esc_url( __( 'https://www.sitemaps.org/' ) ),
     
    163163
    164164        $text = sprintf(
    165             /* translators: %s: number of URLs. */
     165            /* translators: %s: Number of URLs. */
    166166            esc_xml( __( 'Number of URLs in this XML Sitemap: %s.' ) ),
    167167            '<xsl:value-of select="count( sitemap:sitemapindex/sitemap:sitemap )" />'
Note: See TracChangeset for help on using the changeset viewer.