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

    r48072 r48098  
    3232         * @since 5.5.0
    3333         *
    34          * @return array Map of registered post type objects (WP_Post_Type) keyed by their name.
     34         * @return WP_Post_Type[] Array of registered post type objects keyed by their name.
    3535         */
    3636        public function get_object_subtypes() {
     
    4343                 * @since 5.5.0
    4444                 *
    45                  * @param array $post_types Map of registered post type objects (WP_Post_Type) keyed by their name.
     45                 * @param WP_Post_Type[] $post_types Array of registered post type objects keyed by their name.
    4646                 */
    4747                return apply_filters( 'wp_sitemaps_post_types', $post_types );
     
    5555         * @param int    $page_num  Page of results.
    5656         * @param string $post_type Optional. Post type name. Default empty.
    57          * @return array $url_list Array of URLs for a sitemap.
     57         * @return array Array of URLs for a sitemap.
    5858         */
    5959        public function get_url_list( $page_num, $post_type = '' ) {
     
    160160                 * Filters the max number of pages before it is generated.
    161161                 *
    162                  * Passing a non-null value will effectively short-circuit the generation,
     162                 * Passing a non-null value will short-circuit the generation,
    163163                 * returning that value instead.
    164164                 *
    165165                 * @since 5.5.0
    166166                 *
    167                  * @param int $max_num_pages The maximum number of pages. Default null.
    168                  * @param string $post_type Post type name.
     167                 * @param null|int $max_num_pages The maximum number of pages. Default null.
     168                 * @param string   $post_type    Post type name.
    169169                 */
    170170                $max_num_pages = apply_filters( 'wp_sitemaps_posts_pre_max_num_pages', null, $post_type );
     
    189189         *
    190190         * @param string $post_type Post type name.
    191          * @return array $args Array of WP_Query arguments.
     191         * @return array Array of WP_Query arguments.
    192192         */
    193193        protected function get_posts_query_args( $post_type ) {
Note: See TracChangeset for help on using the changeset viewer.