Ticket #38765: 38765.3.diff
File 38765.3.diff, 1.7 KB (added by , 8 years ago) |
---|
-
src/wp-includes/class-wp-taxonomy.php
196 196 public $_builtin; 197 197 198 198 /** 199 * $args 200 * @since 4.7.0 201 * @access public 202 * @var array 203 */ 204 public $props; 205 206 /** 199 207 * Constructor. 200 208 * 201 209 * @since 4.7.0 … … 214 222 $this->set_props( $object_type, $args ); 215 223 } 216 224 225 public function get_props( $type = 'array' ) { 226 227 return $this->props; 228 } 229 217 230 /** 218 231 * Sets taxonomy properties. 219 232 * … … 333 346 } 334 347 } 335 348 349 $this->props = $args; 350 336 351 foreach ( $args as $property_name => $property_value ) { 337 352 $this->$property_name = $property_value; 338 353 } -
src/wp-includes/taxonomy.php
388 388 * Fires after a taxonomy is registered. 389 389 * 390 390 * @since 3.3.0 391 * @since 4.7.0 Converted the `$taxonomy_object` parameter to accept a WP_Taxonomy object. 391 392 * 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.393 * @param string $taxonomy Taxonomy slug. 394 * @param array|string $object_type Object type or array of object types. 395 * @param WP_Taxonomy $taxonomy_object Taxonomy Object. 395 396 */ 396 do_action( 'registered_taxonomy', $taxonomy, $object_type, $ args);397 do_action( 'registered_taxonomy', $taxonomy, $object_type, $taxonomy_object ); 397 398 } 398 399 399 400 /**