Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #27952, comment 6


Ignore:
Timestamp:
06/08/2014 06:51:01 PM (11 years ago)
Author:
strangerstudios
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27952, comment 6

    initial v1  
    88
    99If this makes sense, I can write a new patch that keeps the post_delete hook in there and possibly updated the function to optionally take `$new_status` and `$old_status` params to test them before updating the count.
     10
     11UPDATE: Hey, MidxCat, I'm at WordCamp Philly with Nacin and talking about this one. :)
     12
     13I'm told `transition_post_status` will also fire if the status is "chaning" from "publish" to "publish". So we'll handle that case to NOT update the count if the status remains "publish". Working on a patch right now.