Make WordPress Core

Ticket #38846: 38846.diff

File 38846.diff, 1.1 KB (added by Toro_Unit, 8 years ago)
  • src/wp-includes/taxonomy.php

     
    383383
    384384        $taxonomy_object->add_hooks();
    385385
     386        $args = (array) $taxonomy_object;
    386387
    387388        /**
    388389         * Fires after a taxonomy is registered.
    389390         *
    390391         * @since 3.3.0
     392         * @since 4.7.0 Added the the `$taxonomy_object` parameter.
    391393         *
    392          * @param string       $taxonomy    Taxonomy slug.
    393          * @param array|string $object_type Object type or array of object types.
    394          * @param array        $args        Array of taxonomy registration arguments.
     394         * @param string       $taxonomy        Taxonomy slug.
     395         * @param array|string $object_type     Object type or array of object types.
     396         * @param array        $args            Array of taxonomy registration arguments.
     397         * @param WP_Taxonomy  $taxonomy_object Object of taxonomy.
    395398         */
    396         do_action( 'registered_taxonomy', $taxonomy, $object_type, (array) $taxonomy_object );
     399        do_action( 'registered_taxonomy', $taxonomy, $object_type, $args, $taxonomy_object );
    397400}
    398401
    399402/**