equal
deleted
inserted
replaced
58 * @param string $object_subtype Optional. Taxonomy name. Default empty. |
58 * @param string $object_subtype Optional. Taxonomy name. Default empty. |
59 * @return array[] Array of URL information for a sitemap. |
59 * @return array[] Array of URL information for a sitemap. |
60 */ |
60 */ |
61 public function get_url_list( $page_num, $object_subtype = '' ) { |
61 public function get_url_list( $page_num, $object_subtype = '' ) { |
62 // Restores the more descriptive, specific name for use within this method. |
62 // Restores the more descriptive, specific name for use within this method. |
63 $taxonomy = $object_subtype; |
63 $taxonomy = $object_subtype; |
|
64 |
64 $supported_types = $this->get_object_subtypes(); |
65 $supported_types = $this->get_object_subtypes(); |
65 |
66 |
66 // Bail early if the queried taxonomy is not supported. |
67 // Bail early if the queried taxonomy is not supported. |
67 if ( ! isset( $supported_types[ $taxonomy ] ) ) { |
68 if ( ! isset( $supported_types[ $taxonomy ] ) ) { |
68 return array(); |
69 return array(); |