Changeset 51787
- Timestamp:
- 09/09/2021 07:20:56 PM (3 years ago)
- Location:
- trunk/src/wp-includes/sitemaps/providers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php
r48476 r51787 54 54 * 55 55 * @since 5.5.0 56 * 57 * @param int $page_num Page of results. 58 * @param string $post_type Optional. Post type name. Default empty. 56 * @since 5.9.0 Renamed `$post_type` to `$object_subtype` to match parent class 57 * for PHP 8 named parameter support. 58 * 59 * @param int $page_num Page of results. 60 * @param string $object_subtype Optional. Post type name. Default empty. 61 * 59 62 * @return array Array of URLs for a sitemap. 60 63 */ 61 public function get_url_list( $page_num, $post_type = '' ) { 64 public function get_url_list( $page_num, $object_subtype = '' ) { 65 // Restores the more descriptive, specific name for use within this method. 66 $post_type = $object_subtype; 67 62 68 // Bail early if the queried post type is not supported. 63 69 $supported_types = $this->get_object_subtypes(); -
trunk/src/wp-includes/sitemaps/providers/class-wp-sitemaps-taxonomies.php
r49137 r51787 52 52 * 53 53 * @since 5.5.0 54 * 55 * @param int $page_num Page of results. 56 * @param string $taxonomy Optional. Taxonomy name. Default empty. 54 * @since 5.9.0 Renamed `$taxonomy` to `$object_subtype` to match parent class 55 * for PHP 8 named parameter support. 56 * 57 * @param int $page_num Page of results. 58 * @param string $object_subtype Optional. Taxonomy name. Default empty. 57 59 * @return array Array of URLs for a sitemap. 58 60 */ 59 public function get_url_list( $page_num, $taxonomy = '' ) { 61 public function get_url_list( $page_num, $object_subtype = '' ) { 62 // Restores the more descriptive, specific name for use within this method. 63 $taxonomy = $object_subtype; 60 64 $supported_types = $this->get_object_subtypes(); 61 65
Note: See TracChangeset
for help on using the changeset viewer.