Taxonomy: Correct the initial value for WP_Taxonomy::$labels
to match get_taxonomy_labels()
return type.
Improve documentation for consistency with `WP_Post_Type::$labels`. Props alpipego. Fixes #48681. git-svn-id: https://develop.svn.wordpress.org/trunk@46743 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e68601875e
commit
f64a6a8da7
@ -30,12 +30,17 @@ final class WP_Taxonomy {
|
||||
public $label;
|
||||
|
||||
/**
|
||||
* An array of labels for this taxonomy.
|
||||
* Labels object for this taxonomy.
|
||||
*
|
||||
* If not set, tag labels are inherited for non-hierarchical types
|
||||
* and category labels for hierarchical ones.
|
||||
*
|
||||
* @see get_taxonomy_labels()
|
||||
*
|
||||
* @since 4.7.0
|
||||
* @var object
|
||||
*/
|
||||
public $labels = array();
|
||||
public $labels;
|
||||
|
||||
/**
|
||||
* A short descriptive summary of what the taxonomy is for.
|
||||
|
Loading…
Reference in New Issue
Block a user