Changeset 34787
- Timestamp:
- 10/02/2015 11:56:16 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy-functions.php
r34718 r34787 347 347 $wp_taxonomies = array(); 348 348 349 $args = wp_parse_args( $args ); 350 351 /** 352 * Filter the arguments for registering a taxonomy. 353 * 354 * @since 4.4.0 355 * 356 * @param array $args Array of arguments for registering a taxonomy. 357 * @param array $object_type Array of names of object types for the taxonomy. 358 * @param string $taxonomy Taxonomy key. 359 */ 360 $args = apply_filters( 'register_taxonomy_args', $args, $taxonomy, (array) $object_type ); 361 349 362 $defaults = array( 350 363 'labels' => array(), … … 365 378 '_builtin' => false, 366 379 ); 367 $args = wp_parse_args( $args, $defaults );380 $args = array_merge( $defaults, $args ); 368 381 369 382 if ( empty( $taxonomy ) || strlen( $taxonomy ) > 32 ) {
Note: See TracChangeset
for help on using the changeset viewer.