WordPress.org

Make WordPress Core

Ticket #38765: 38765.9.diff

File 38765.9.diff, 589 bytes (added by peterwilsoncc, 4 years ago)
  • src/wp-includes/taxonomy.php

    diff --git src/wp-includes/taxonomy.php src/wp-includes/taxonomy.php
    index 9ddd02c..72ce505 100644
    function register_taxonomy( $taxonomy, $object_type, $args = array() ) { 
    393393         * @param array|string $object_type Object type or array of object types.
    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
    399399/**