Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#12348 closed enhancement (fixed)

Improve default callback for taxonomies categories/post_tag

Reported by: momo360modena Owned by: dd32
Milestone: 3.0 Priority: normal
Severity: normal Version: 3.0
Component: Taxonomy Keywords: has-patch needs-testing
Focuses: Cc:


See patch.

With the new API of taxonomies, one taxonomy can have multiples object types.

Add the param $taxonomy are now required for custom callback.

The default callback, used for category/post_tag, must be support an array of object types, because with the function register_taxonomy_for_object_type(), i can add a another custom object type to a default taxonomy.

Attachments (1)

taxo.diff (2.4 KB) - added by momo360modena 8 years ago.

Download all attachments as: .zip

Change History (4)

8 years ago

#1 @scribu
8 years ago

Looks good.

#2 @nacin
8 years ago

  • Owner changed from filosofo to dd32
  • Status changed from new to assigned

#3 @dd32
8 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [13625]) Add custom post_type support to _update_post_term_coun(). Props momo360modena. Fixes #12348

Note: See TracTickets for help on using tickets.