Make WordPress Core


Ignore:
Timestamp:
09/16/2015 07:04:57 PM (8 years ago)
Author:
boonebgorges
Message:

Allow taxonomies to be non-public.

[13216] introduced the 'public' argument for register_taxonomy(). This param
was used to set defaults for 'show_ui' and a number of other params, but it
never did anything itself.

With this changeset, taxonomies registered with public=false will no longer
be queryable on the front end, ie via taxonomy archive queries.

Props wpsmith, ocean90, nacin, ericlewis, boonebgorges.
Fixes #21949.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/taxonomy-functions.php

    r34246 r34247  
    279279 *     * You can see accepted values in {@link get_taxonomy_labels()}.
    280280 * - description - A short descriptive summary of what the taxonomy is for. Defaults to blank.
    281  * - public - If the taxonomy should be publicly queryable; //@TODO not implemented.
     281 * - public - If the taxonomy should be publicly queryable.
    282282 *     * Defaults to true.
    283283 * - hierarchical - Whether the taxonomy is hierarchical (e.g. category). Defaults to false.
Note: See TracChangeset for help on using the changeset viewer.