- Timestamp:
- 06/19/2020 10:24:14 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php
r48072 r48098 32 32 * @since 5.5.0 33 33 * 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. 35 35 */ 36 36 public function get_object_subtypes() { … … 43 43 * @since 5.5.0 44 44 * 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. 46 46 */ 47 47 return apply_filters( 'wp_sitemaps_post_types', $post_types ); … … 55 55 * @param int $page_num Page of results. 56 56 * @param string $post_type Optional. Post type name. Default empty. 57 * @return array $url_listArray of URLs for a sitemap.57 * @return array Array of URLs for a sitemap. 58 58 */ 59 59 public function get_url_list( $page_num, $post_type = '' ) { … … 160 160 * Filters the max number of pages before it is generated. 161 161 * 162 * Passing a non-null value will effectivelyshort-circuit the generation,162 * Passing a non-null value will short-circuit the generation, 163 163 * returning that value instead. 164 164 * 165 165 * @since 5.5.0 166 166 * 167 * @param int $max_num_pages The maximum number of pages. Default null.168 * @param string $post_typePost type name.167 * @param null|int $max_num_pages The maximum number of pages. Default null. 168 * @param string $post_type Post type name. 169 169 */ 170 170 $max_num_pages = apply_filters( 'wp_sitemaps_posts_pre_max_num_pages', null, $post_type ); … … 189 189 * 190 190 * @param string $post_type Post type name. 191 * @return array $argsArray of WP_Query arguments.191 * @return array Array of WP_Query arguments. 192 192 */ 193 193 protected function get_posts_query_args( $post_type ) {
Note: See TracChangeset
for help on using the changeset viewer.