wp/wp-includes/sitemaps/class-wp-sitemaps-provider.php
changeset 19 3d72ae0968f4
parent 16 a86126ab1dd4
child 21 48c4eec2b7e6
equal deleted inserted replaced
18:be944660c56a 19:3d72ae0968f4
    40 	 *
    40 	 *
    41 	 * @since 5.5.0
    41 	 * @since 5.5.0
    42 	 *
    42 	 *
    43 	 * @param int    $page_num       Page of results.
    43 	 * @param int    $page_num       Page of results.
    44 	 * @param string $object_subtype Optional. Object subtype name. Default empty.
    44 	 * @param string $object_subtype Optional. Object subtype name. Default empty.
    45 	 * @return array Array of URLs for a sitemap.
    45 	 * @return array[] Array of URL information for a sitemap.
    46 	 */
    46 	 */
    47 	abstract public function get_url_list( $page_num, $object_subtype = '' );
    47 	abstract public function get_url_list( $page_num, $object_subtype = '' );
    48 
    48 
    49 	/**
    49 	/**
    50 	 * Gets the max number of pages available for the object type.
    50 	 * Gets the max number of pages available for the object type.
   158 			'/wp-sitemap-%1$s.xml',
   158 			'/wp-sitemap-%1$s.xml',
   159 			implode( '-', $params )
   159 			implode( '-', $params )
   160 		);
   160 		);
   161 
   161 
   162 		if ( ! $wp_rewrite->using_permalinks() ) {
   162 		if ( ! $wp_rewrite->using_permalinks() ) {
   163 			$basename = '/?' . http_build_query( $params, null, '&' );
   163 			$basename = '/?' . http_build_query( $params, '', '&' );
   164 		}
   164 		}
   165 
   165 
   166 		return home_url( $basename );
   166 		return home_url( $basename );
   167 	}
   167 	}
   168 
   168