Changeset 40049
- Timestamp:
- 02/06/2017 07:38:36 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-taxonomy.php
r38747 r40049 334 334 } 335 335 336 $args['name'] = $this->name; 337 336 338 foreach ( $args as $property_name => $property_value ) { 337 339 $this->$property_name = $property_value; -
trunk/tests/phpunit/tests/taxonomy.php
r38571 r40049 711 711 } 712 712 713 /** 714 * @ticket 39308 715 */ 716 public function test_taxonomy_name_property_should_not_get_overridden_by_passed_args() { 717 register_taxonomy( 'foo', 'post', array( 'name' => 'bar' ) ); 718 719 $taxonomy = get_taxonomy( 'foo' ); 720 unregister_taxonomy( 'foo' ); 721 722 $this->assertSame( 'foo', $taxonomy->name ); 723 } 713 724 }
Note: See TracChangeset
for help on using the changeset viewer.