Ticket #38846: 38846.diff
File 38846.diff, 1.1 KB (added by , 8 years ago) |
---|
-
src/wp-includes/taxonomy.php
383 383 384 384 $taxonomy_object->add_hooks(); 385 385 386 $args = (array) $taxonomy_object; 386 387 387 388 /** 388 389 * Fires after a taxonomy is registered. 389 390 * 390 391 * @since 3.3.0 392 * @since 4.7.0 Added the the `$taxonomy_object` parameter. 391 393 * 392 * @param string $taxonomy Taxonomy slug. 393 * @param array|string $object_type Object type or array of object types. 394 * @param array $args Array of taxonomy registration arguments. 394 * @param string $taxonomy Taxonomy slug. 395 * @param array|string $object_type Object type or array of object types. 396 * @param array $args Array of taxonomy registration arguments. 397 * @param WP_Taxonomy $taxonomy_object Object of taxonomy. 395 398 */ 396 do_action( 'registered_taxonomy', $taxonomy, $object_type, (array)$taxonomy_object );399 do_action( 'registered_taxonomy', $taxonomy, $object_type, $args, $taxonomy_object ); 397 400 } 398 401 399 402 /**