WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 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:

Description

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 4 years ago.

Download all attachments as: .zip

Change History (4)

momo360modena4 years ago

comment:1 scribu4 years ago

Looks good.

comment:2 nacin4 years ago

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

comment:3 dd324 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.