[wp-trac] [WordPress Trac] #32830: get_taxonomy_labels() does not check for the existence of the labels property
WordPress Trac
noreply at wordpress.org
Mon Jun 29 18:56:30 UTC 2015
#32830: get_taxonomy_labels() does not check for the existence of the labels
property
--------------------------+-----------------------------
Reporter: ipm-frommen | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Inside `get_taxonomy_labels()`, we currently just access the `labels`
property of the given `$tax` object. In case the object does not have any
labels, this generates a PHP Notice.
The attached patch includes a fix for this.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32830>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list