WordPress.org

Make WordPress Core

Ticket #38765: 38765.4.diff

File 38765.4.diff, 960 bytes (added by Toro_Unit, 4 years ago)
  • src/wp-includes/taxonomy.php

     
    388388         * Fires after a taxonomy is registered.
    389389         *
    390390         * @since 3.3.0
     391         * @since 4.7.0 Converted the `$taxonomy_object` parameter to accept a WP_Taxonomy object.
    391392         *
    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.
     393         * @param string       $taxonomy        Taxonomy slug.
     394         * @param array|string $object_type     Object type or array of object types.
     395         * @param WP_Taxonomy  $taxonomy_object Taxonomy Object.
    395396         */
    396         do_action( 'registered_taxonomy', $taxonomy, $object_type, $args );
     397        do_action( 'registered_taxonomy', $taxonomy, $object_type, $taxonomy_object );
    397398}
    398399
    399400/**