Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 56 additions & 1 deletion src/wp-includes/class-wp-term.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
*
* @property-read object $data Sanitized term data.
*/
#[AllowDynamicProperties]
final class WP_Term {

/**
Expand Down Expand Up @@ -89,6 +88,62 @@ final class WP_Term {
*/
public $count = 0;

/**
* Object ID (for compatibility with the old taxonomy API).
*
* @var int|null
*/
public $object_id = null;

/**
* Compatibility fields (for compatibility with the old taxonomy API).
*
* @var array
*/
public $compat_fields = array();

/**
* Category ID (for compatibility with the old taxonomy API).
*
* @var int|null
*/
public $cat_ID = null;

/**
* Category count (for compatibility with the old taxonomy API).
*
* @var int|null
*/
public $category_count = null;

/**
* Category description (for compatibility with the old taxonomy API).
*
* @var string|null
*/
public $category_description = null;

/**
* Category name (for compatibility with the old taxonomy API).
*
* @var string|null
*/
public $cat_name = null;

/**
* Category slug (for compatibility with the old taxonomy API).
*
* @var string|null
*/
public $category_nicename = null;

/**
* Category parent ID (for compatibility with the old taxonomy API).
*
* @var int|null
*/
public $category_parent = null;

/**
* Stores the term object's sanitization level.
*
Expand Down
Loading