[wp-trac] [WordPress Trac] #44466: Have a method to check if a taxonomy is viewable
WordPress Trac
noreply at wordpress.org
Tue Jul 3 10:23:16 UTC 2018
#44466: Have a method to check if a taxonomy is viewable
-------------------------------------------------+-------------------------
Reporter: andizer | Owner: andizer
Type: enhancement | Status: assigned
Priority: normal | Milestone: 5.0
Component: Taxonomy | Version:
Severity: normal | Resolution:
Keywords: good-first-bug has-patch has-unit- | Focuses:
tests |
-------------------------------------------------+-------------------------
Comment (by flixos90):
In [attachment:"44466.2.diff"] I assembled the previous patches into one.
Everything worked perfectly, I just made a few changes:
* Got rid of the one usage in the REST API controller. While it
technically works, that code is getting values for taxonomy properties, so
`publicly_queryable` should continue to simply get its value.
* Added `5.0.0` version number to the function.
* Added missing call to parent `setUp()` method in the test class.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44466#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list