Make WordPress Core

Ticket #48558: 48558.diff

File 48558.diff, 1016 bytes (added by krynes, 5 years ago)
  • src/wp-includes/taxonomy.php

    diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php
    index 0eaecdf887..b91ae8f227 100644
    a b function is_taxonomy_hierarchical( $taxonomy ) { 
    408408 *     @type bool          $_builtin              This taxonomy is a "built-in" taxonomy. INTERNAL USE ONLY!
    409409 *                                                Default false.
    410410 * }
    411  * @return void|WP_Error Void on success, WP_Error object on failure.
     411 * @return WP_Taxonomy|WP_Error The registered taxonomy object on success, WP_Error object on failure.
    412412 */
    413413function register_taxonomy( $taxonomy, $object_type, $args = array() ) {
    414414        global $wp_taxonomies;
    function register_taxonomy( $taxonomy, $object_type, $args = array() ) { 
    441441         * @param array        $args        Array of taxonomy registration arguments.
    442442         */
    443443        do_action( 'registered_taxonomy', $taxonomy, $object_type, (array) $taxonomy_object );
     444
     445        return $taxonomy_object;
    444446}
    445447
    446448/**