Changeset 47186
- Timestamp:
- 02/05/2020 06:24:16 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r47122 r47186 409 409 * Default false. 410 410 * } 411 * @return void|WP_Error Voidon success, WP_Error object on failure.411 * @return WP_Taxonomy|WP_Error The registered taxonomy object on success, WP_Error object on failure. 412 412 */ 413 413 function register_taxonomy( $taxonomy, $object_type, $args = array() ) { … … 442 442 */ 443 443 do_action( 'registered_taxonomy', $taxonomy, $object_type, (array) $taxonomy_object ); 444 445 return $taxonomy_object; 444 446 } 445 447 -
trunk/tests/phpunit/tests/post/types.php
r47122 r47186 38 38 39 39 _unregister_post_type( 'foo' ); 40 } 41 42 /** 43 * @ticket 48558 44 */ 45 function test_register_post_type_return_value() { 46 $this->assertInstanceOf( 'WP_Post_Type', register_post_type( 'foo' ) ); 40 47 } 41 48 -
trunk/tests/phpunit/tests/taxonomy.php
r47122 r47186 171 171 172 172 /** 173 * @ticket 48558 174 */ 175 function test_register_taxonomy_return_value() { 176 $this->assertInstanceOf( 'WP_Taxonomy', register_taxonomy( 'foo', 'post' ) ); 177 } 178 179 /** 173 180 * @ticket 21593 174 181 *
Note: See TracChangeset
for help on using the changeset viewer.