Make WordPress Core


Ignore:
Timestamp:
02/05/2020 06:24:16 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Taxonomy: In register_taxonomy(), return the registered taxonomy object on success, for consistency with register_post_type().

Props krynes, SergeyBiryukov.
Fixes #48558.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/taxonomy.php

    r47122 r47186  
    171171
    172172    /**
     173     * @ticket 48558
     174     */
     175    function test_register_taxonomy_return_value() {
     176        $this->assertInstanceOf( 'WP_Taxonomy', register_taxonomy( 'foo', 'post' ) );
     177    }
     178
     179    /**
    173180     * @ticket 21593
    174181     *
Note: See TracChangeset for help on using the changeset viewer.