[wp-trac] [WordPress Trac] #18986: Link categories filter doesn't show all categories

WordPress Trac wp-trac at lists.automattic.com
Fri Oct 21 00:41:36 UTC 2011


#18986: Link categories filter doesn't show all categories
--------------------------+-----------------------
 Reporter:  ocean90       |       Owner:  ryan
     Type:  defect (bug)  |      Status:  reopened
 Priority:  high          |   Milestone:  3.3
Component:  Taxonomy      |     Version:  3.3
 Severity:  major         |  Resolution:
 Keywords:  has-patch     |
--------------------------+-----------------------

Comment (by nacin):

 [attachment:18986.2.diff] implements a conditional when choosing which
 "generic" handler to use. It carefully deals with `attachment:*` object
 types (1) and then checks to see if *all* object types are indeed a post
 type. If so, it goes with _update_post_term_count(). If not, it goes with
 the generic handler.

 (Very rarely will a taxonomy include object types of both posts and non-
 posts. In this case the developer is going to certainly implement their
 own callback.)

 (1) - Note, I think the simpler handling of object types with a colon in
 _update_post_term_count() is fine, given that these are only supposed to
 be post types.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18986#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list