mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Docs: Clarify and standardise on terminology used for rewrite rule endpoint masks.
See #51800 git-svn-id: https://develop.svn.wordpress.org/trunk@49670 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -840,9 +840,23 @@ class WP_Rewrite {
|
||||
*
|
||||
* @param string $permalink_structure The permalink structure.
|
||||
* @param int $ep_mask Optional. Endpoint mask defining what endpoints are added to the structure.
|
||||
* Accepts `EP_NONE`, `EP_PERMALINK`, `EP_ATTACHMENT`, `EP_DATE`, `EP_YEAR`,
|
||||
* `EP_MONTH`, `EP_DAY`, `EP_ROOT`, `EP_COMMENTS`, `EP_SEARCH`, `EP_CATEGORIES`,
|
||||
* `EP_TAGS`, `EP_AUTHORS`, `EP_PAGES`, `EP_ALL_ARCHIVES`, and `EP_ALL`.
|
||||
* Accepts a mask of:
|
||||
* - `EP_ALL`
|
||||
* - `EP_NONE`
|
||||
* - `EP_ALL_ARCHIVES`
|
||||
* - `EP_ATTACHMENT`
|
||||
* - `EP_AUTHORS`
|
||||
* - `EP_CATEGORIES`
|
||||
* - `EP_COMMENTS`
|
||||
* - `EP_DATE`
|
||||
* - `EP_DAY`
|
||||
* - `EP_MONTH`
|
||||
* - `EP_PAGES`
|
||||
* - `EP_PERMALINK`
|
||||
* - `EP_ROOT`
|
||||
* - `EP_SEARCH`
|
||||
* - `EP_TAGS`
|
||||
* - `EP_YEAR`
|
||||
* Default `EP_NONE`.
|
||||
* @param bool $paged Optional. Whether archive pagination rules should be added for the structure.
|
||||
* Default true.
|
||||
@@ -1682,6 +1696,23 @@ class WP_Rewrite {
|
||||
*
|
||||
* @param string $name Name of the endpoint.
|
||||
* @param int $places Endpoint mask describing the places the endpoint should be added.
|
||||
* Accepts a mask of:
|
||||
* - `EP_ALL`
|
||||
* - `EP_NONE`
|
||||
* - `EP_ALL_ARCHIVES`
|
||||
* - `EP_ATTACHMENT`
|
||||
* - `EP_AUTHORS`
|
||||
* - `EP_CATEGORIES`
|
||||
* - `EP_COMMENTS`
|
||||
* - `EP_DATE`
|
||||
* - `EP_DAY`
|
||||
* - `EP_MONTH`
|
||||
* - `EP_PAGES`
|
||||
* - `EP_PERMALINK`
|
||||
* - `EP_ROOT`
|
||||
* - `EP_SEARCH`
|
||||
* - `EP_TAGS`
|
||||
* - `EP_YEAR`
|
||||
* @param string|bool $query_var Optional. Name of the corresponding query variable. Pass `false` to
|
||||
* skip registering a query_var for this endpoint. Defaults to the
|
||||
* value of `$name`.
|
||||
@@ -1725,9 +1756,23 @@ class WP_Rewrite {
|
||||
* @type bool $with_front Whether the structure should be prepended with `WP_Rewrite::$front`.
|
||||
* Default true.
|
||||
* @type int $ep_mask The endpoint mask defining which endpoints are added to the structure.
|
||||
* Accepts `EP_NONE`, `EP_PERMALINK`, `EP_ATTACHMENT`, `EP_DATE`, `EP_YEAR`,
|
||||
* `EP_MONTH`, `EP_DAY`, `EP_ROOT`, `EP_COMMENTS`, `EP_SEARCH`, `EP_CATEGORIES`,
|
||||
* `EP_TAGS`, `EP_AUTHORS`, `EP_PAGES`, `EP_ALL_ARCHIVES`, and `EP_ALL`.
|
||||
* Accepts a mask of:
|
||||
* - `EP_ALL`
|
||||
* - `EP_NONE`
|
||||
* - `EP_ALL_ARCHIVES`
|
||||
* - `EP_ATTACHMENT`
|
||||
* - `EP_AUTHORS`
|
||||
* - `EP_CATEGORIES`
|
||||
* - `EP_COMMENTS`
|
||||
* - `EP_DATE`
|
||||
* - `EP_DAY`
|
||||
* - `EP_MONTH`
|
||||
* - `EP_PAGES`
|
||||
* - `EP_PERMALINK`
|
||||
* - `EP_ROOT`
|
||||
* - `EP_SEARCH`
|
||||
* - `EP_TAGS`
|
||||
* - `EP_YEAR`
|
||||
* Default `EP_NONE`.
|
||||
* @type bool $paged Whether archive pagination rules should be added for the structure.
|
||||
* Default true.
|
||||
|
||||
Reference in New Issue
Block a user