Make WordPress Core

Changeset 39283


Ignore:
Timestamp:
11/17/2016 11:34:42 PM (8 years ago)
Author:
peterwilsoncc
Message:

Taxonomy: Update register_taxonomy hook to use WP_Taxonomy object.

Casts WP_Taxonomy to an array for passing to the register_taxonomy hook. This maintains backward compatibility with the processed arguments used prior to WordPress 4.7.

Fixes #38765.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/taxonomy.php

    r39188 r39283  
    394394     * @param array        $args        Array of taxonomy registration arguments.
    395395     */
    396     do_action( 'registered_taxonomy', $taxonomy, $object_type, $args );
     396    do_action( 'registered_taxonomy', $taxonomy, $object_type, (array) $taxonomy_object );
    397397}
    398398
Note: See TracChangeset for help on using the changeset viewer.