Ticket #50607: providers.patch
| File providers.patch, 1.2 KB (added by , 6 years ago) |
|---|
-
wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php
37 37 $post_types = get_post_types( array( 'public' => true ), 'objects' ); 38 38 unset( $post_types['attachment'] ); 39 39 40 $post_types = array_filter( $post_types, 'is_post_type_viewable' ); 41 40 42 /** 41 43 * Filters the list of post object sub types available within the sitemap. 42 44 * -
wp-includes/sitemaps/providers/class-wp-sitemaps-taxonomies.php
35 35 public function get_object_subtypes() { 36 36 $taxonomies = get_taxonomies( array( 'public' => true ), 'objects' ); 37 37 38 $taxonomies = array_filter( $taxonomies, 'is_taxonomy_viewable' ); 39 38 40 /** 39 41 * Filter the list of taxonomy object subtypes available within the sitemap. 40 42 *