Make WordPress Core

Ticket #64853: category-count-fix.patch

File category-count-fix.patch, 500 bytes (added by maulikmakwana2008, 5 months ago)
  • src/wp-includes/taxonomy.php

    diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php
    index 80f457de0e..cc033db670 100644
    a b function _update_post_term_count( $terms, $taxonomy ) {  
    41694169                $object_types = esc_sql( array_filter( $object_types, 'post_type_exists' ) );
    41704170        }
    41714171
    4172         $post_statuses = array( 'publish' );
     4172        $post_statuses = array( 'publish', 'future' );
    41734173
    41744174        /**
    41754175         * Filters the post statuses for updating the term count.