Opened 11 years ago
Closed 11 years ago
#34491 closed enhancement (fixed)
Introduce a 'publicly_queryable' argument to register_taxonomy
| Reported by: | Chouby | Owned by: | boonebgorges |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.5 |
| Component: | Taxonomy | Version: | 4.4 |
| Severity: | normal | Keywords: | has-patch has-unit-tests needs-docs |
| Cc: | Focuses: |
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
@
11 years ago
- Keywords needs-unit-tests dev-feedback needs-testing added
- Milestone Awaiting Review → 4.4
- Owner set to
- Status new → assigned
#3
@
11 years ago
- Keywords 4.5-early added; dev-feedback needs-testing removed
- Milestone 4.4 → Future Release
#4
@
11 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
@
11 years ago
- Keywords needs-refresh removed
attachment:34491.3.patch is just a refresh of attachment:34491.2.patch
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Thanks for the patch, Chouby. It would be nice to have a few tests demonstrating how
publicly_queryablegets its default value frompublic.