[wp-trac] [WordPress Trac] #38843: Add filter for post statuses in _update_post_term_count()

WordPress Trac noreply at wordpress.org
Sat Dec 26 23:25:03 UTC 2020


#38843: Add filter for post statuses in _update_post_term_count()
--------------------------------------+------------------------------
 Reporter:  GunGeekATX                |       Owner:  adamsilverstein
     Type:  enhancement               |      Status:  assigned
 Priority:  normal                    |   Milestone:  5.7
Component:  Taxonomy                  |     Version:  4.7
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------------------

Comment (by nwjames):

 Sorry my comment with the modified diff was a little cryptic.

 The SQL statement is rather long and contained 2 occurrences of "=
 'publish'" (one for posts and the other for attachments).

 The previous fix addressed only the first one.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/38843#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list