- Timestamp:
- 09/09/2021 07:20:56 PM (4 years ago)
- File:
-
- 1 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();
Note: See TracChangeset
for help on using the changeset viewer.