diff --git src/wp-includes/class-wp-taxonomy.php src/wp-includes/class-wp-taxonomy.php
index 4611ce9..7a6209e 100644
|
|
|
final class WP_Taxonomy { |
| 196 | 196 | public $_builtin; |
| 197 | 197 | |
| 198 | 198 | /** |
| | 199 | * Arguments used to register the taxonomy. |
| | 200 | * |
| | 201 | * @since 4.7.0 |
| | 202 | * @access public |
| | 203 | * @var array |
| | 204 | */ |
| | 205 | public $args; |
| | 206 | |
| | 207 | /** |
| 199 | 208 | * Constructor. |
| 200 | 209 | * |
| 201 | 210 | * @since 4.7.0 |
| … |
… |
final class WP_Taxonomy { |
| 337 | 346 | $this->$property_name = $property_value; |
| 338 | 347 | } |
| 339 | 348 | |
| 340 | | $this->labels = get_taxonomy_labels( $this ); |
| 341 | | $this->label = $this->labels->name; |
| | 349 | $this->args = $args; |
| | 350 | $this->args['labels'] = $this->labels = get_taxonomy_labels( $this ); |
| | 351 | $this->args['label'] = $this->label = $this->labels->name; |
| 342 | 352 | } |
| 343 | 353 | |
| 344 | 354 | /** |
diff --git src/wp-includes/taxonomy.php src/wp-includes/taxonomy.php
index 9ddd02c..0c776bd 100644
|
|
|
function register_taxonomy( $taxonomy, $object_type, $args = array() ) { |
| 393 | 393 | * @param array|string $object_type Object type or array of object types. |
| 394 | 394 | * @param array $args Array of taxonomy registration arguments. |
| 395 | 395 | */ |
| 396 | | do_action( 'registered_taxonomy', $taxonomy, $object_type, $args ); |
| | 396 | do_action( 'registered_taxonomy', $taxonomy, $object_type, $taxonomy_object->args ); |
| 397 | 397 | } |
| 398 | 398 | |
| 399 | 399 | /** |