Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #17548, comment 3


Ignore:
Timestamp:
08/09/2011 02:20:23 PM (13 years ago)
Author:
joehoyle
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17548, comment 3

    initial v1  
    1 I have added a patch to call `update_post_term_count()` on `transition_post_status()` (but only taxonomies with an `update_count_callback` defined.
     1I have added a patch to call `update_post_term_count()` on `transition_post_status()` (but only taxonomies with an `update_count_callback` defined. This will also catch items moved to private etc (which it will not currently).
    22
    33Not sure if it would be best to split this into a function, and add it via `add_filter( 'transition_post_status', 'wp_update_term_count_on_transition_status' )` or something?