Opened 9 years ago
Closed 9 years ago
#34491 closed enhancement (fixed)
Introduce a 'publicly_queryable' argument to register_taxonomy
Reported by: | Chouby | Owned by: | boonebgorges |
---|---|---|---|
Milestone: | 4.5 | Priority: | normal |
Severity: | normal | Version: | 4.4 |
Component: | Taxonomy | Keywords: | has-patch has-unit-tests needs-docs |
Focuses: | Cc: |
Description
Since #21949, it is no more possible to query non-public taxonomies.
Instead of controlling whether a taxonomy can be queried directly with the public
argument, I propose to handle this the same way it is already done for post types.
A new argument publicly_queryable
controls whether it is possible to query the taxonomy on front end. The public
argument controls the default value for publicly_queryable
, show_ui
, and show_in_nav_menus
.
Attachments (3)
Change History (14)
#2
@
9 years ago
- Keywords needs-unit-tests dev-feedback needs-testing added
- Milestone changed from Awaiting Review to 4.4
- Owner set to boonebgorges
- Status changed from new to assigned
#3
@
9 years ago
- Keywords 4.5-early added; dev-feedback needs-testing removed
- Milestone changed from 4.4 to Future Release
#4
@
9 years ago
- Keywords has-unit-tests added; needs-unit-tests removed
These are my first unit tests so I am not sure that they are pertinent enough.
#7
@
9 years ago
- Keywords needs-refresh removed
attachment:34491.3.patch is just a refresh of attachment:34491.2.patch
Note: See
TracTickets for help on using
tickets.
Thanks for the patch, Chouby. It would be nice to have a few tests demonstrating how
publicly_queryable
gets its default value frompublic
.