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:
Sergey Biryukov 2019-11-18 07:57:47 +00:00
parent e68601875e
commit f64a6a8da7
1 changed files with 7 additions and 2 deletions

View File

@ -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.