wp/wp-includes/sitemaps/providers/class-wp-sitemaps-taxonomies.php
changeset 21 48c4eec2b7e6
parent 19 3d72ae0968f4
child 22 8c2e4d02f4ef
equal deleted inserted replaced
20:7b1b88e27a20 21:48c4eec2b7e6
    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();