Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#38846 closed enhancement (wontfix)

Add `$taxonomy_object` parameter in `registered_taxonomy` action.

Reported by: toro_unit's profile Toro_Unit Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.7
Component: Taxonomy Keywords: has-patch
Focuses: Cc:

Description

The action registered_taxonomy receive casted $taxonomy_object now.
Add new parameter for un-casted $taxonomy_object.

Related #38765

Attachments (1)

38846.diff (1.1 KB) - added by Toro_Unit 8 years ago.

Download all attachments as: .zip

Change History (4)

@Toro_Unit
8 years ago

#1 follow-up: @swissspidy
8 years ago

  • Keywords has-patch added

It would indeed be easy to add this, but one can also just use get_taxonomy( $taxonomy ); in their callback, which I believe most developers are already using. So there's no real benefit in passing the taxonomy object to the hook.

#2 in reply to: ↑ 1 @Toro_Unit
8 years ago

Replying to swissspidy:

It would indeed be easy to add this, but one can also just use get_taxonomy( $taxonomy ); in their callback, which I believe most developers are already using. So there's no real benefit in passing the taxonomy object to the hook.

Sure it is right.
Thanks!

#3 @swissspidy
8 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.