Make WordPress Core

Changeset 45797


Ignore:
Timestamp:
08/14/2019 05:46:20 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Docs: Correct type for query_var argument of register_taxonomy().

Props juiiee8487, audrasjb.
Fixes #47877.

File:
1 edited

Legend:

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

    r45735 r45797  
    397397 *         @type int    $ep_mask      Assign an endpoint mask. Default `EP_NONE`.
    398398 *     }
    399  *     @type string        $query_var             Sets the query var key for this taxonomy. Default `$taxonomy` key. If
     399 *     @type string|bool   $query_var             Sets the query var key for this taxonomy. Default `$taxonomy` key. If
    400400 *                                                false, a taxonomy cannot be loaded at `?{query_var}={term_slug}`. If a
    401401 *                                                string, the query `?{query_var}={term_slug}` will be valid.
Note: See TracChangeset for help on using the changeset viewer.