Actualizacion 7.1.2
This commit is contained in:
+1
-1
@@ -271,7 +271,7 @@ class Post_Type implements Provider {
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
protected function get_post_type_count( $post_types ) {
|
||||
public function get_post_type_count( $post_types ) {
|
||||
global $wpdb;
|
||||
|
||||
$posts_to_exclude = 'page' === $post_types ? $this->get_blog_page_id() : '';
|
||||
|
||||
+1
-1
@@ -237,7 +237,7 @@ class Taxonomy implements Provider {
|
||||
* @param int $current_page Current page of the sitemap.
|
||||
* @return false|array
|
||||
*/
|
||||
private function get_terms( $taxonomy, $max_entries, $current_page ) {
|
||||
public function get_terms( $taxonomy, $max_entries, $current_page ) {
|
||||
$offset = $current_page > 1 ? ( ( $current_page - 1 ) * $max_entries ) : 0;
|
||||
$hide_empty = ! Helper::get_settings( 'sitemap.tax_' . $taxonomy->name . '_include_empty' );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user