Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#12348 closed enhancement (fixed)

Improve default callback for taxonomies categories/post_tag

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

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

Download all attachments as: .zip

Change History (4)

@momo360modena
16 years ago

#1 @scribu
16 years ago

Looks good.

#2 @nacin
16 years ago

  • Owner changed from filosofo to dd32
  • Status newassigned

#3 @dd32
16 years ago

  • Resolutionfixed
  • Status assignedclosed

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

Note: See TracTickets for help on using tickets.