Make WordPress Core


Ignore:
Timestamp:
06/19/2020 10:24:14 PM (6 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/providers/class-wp-sitemaps-taxonomies.php

    r48072 r48098  
    3131         * @since 5.5.0
    3232         *
    33          * @return array Map of registered taxonomy objects keyed by their name.
     33         * @return WP_Taxonomy[] Array of registered taxonomy objects keyed by their name.
    3434         */
    3535        public function get_object_subtypes() {
     
    4141                 * @since 5.5.0
    4242                 *
    43                  * @param array $taxonomies Map of registered taxonomy objects keyed by their name.
     43                 * @param WP_Taxonomy[] $taxonomies Array of registered taxonomy objects keyed by their name.
    4444                 */
    4545                return apply_filters( 'wp_sitemaps_taxonomies', $taxonomies );
     
    5353         * @param int    $page_num Page of results.
    5454         * @param string $taxonomy Optional. Taxonomy name. Default empty.
    55          * @return array $url_list Array of URLs for a sitemap.
     55         * @return array Array of URLs for a sitemap.
    5656         */
    5757        public function get_url_list( $page_num, $taxonomy = '' ) {
     
    135135                 * Filters the max number of pages before it is generated.
    136136                 *
    137                  * Passing a non-null value will effectively short-circuit the generation,
     137                 * Passing a non-null value will short-circuit the generation,
    138138                 * returning that value instead.
    139139                 *
    140140                 * @since 5.5.0
    141141                 *
    142                  * @param int $max_num_pages The maximum number of pages. Default null.
    143                  * @param string $taxonomy Taxonomy name.
     142                 * @param int    $max_num_pages The maximum number of pages. Default null.
     143                 * @param string $taxonomy      Taxonomy name.
    144144                 */
    145145                $max_num_pages = apply_filters( 'wp_sitemaps_taxonomies_pre_max_num_pages', null, $taxonomy );
     
    160160         *
    161161         * @param string $taxonomy Taxonomy name.
    162          * @return array $args Array of WP_Term_Query arguments.
     162         * @return array Array of WP_Term_Query arguments.
    163163         */
    164164        protected function get_taxonomies_query_args( $taxonomy ) {
Note: See TracChangeset for help on using the changeset viewer.