Changeset 49670 for trunk/src/wp-includes/rewrite.php
- Timestamp:
- 11/19/2020 04:13:54 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rewrite.php
r49108 r49670 8 8 9 9 /** 10 * Endpoint Mask for default, which is nothing.10 * Endpoint mask that matches nothing. 11 11 * 12 12 * @since 2.1.0 … … 15 15 16 16 /** 17 * Endpoint Mask for Permalink.17 * Endpoint mask that matches post permalinks. 18 18 * 19 19 * @since 2.1.0 … … 22 22 23 23 /** 24 * Endpoint Mask for Attachment.24 * Endpoint mask that matches attachment permalinks. 25 25 * 26 26 * @since 2.1.0 … … 29 29 30 30 /** 31 * Endpoint Mask for date.31 * Endpoint mask that matches any date archives. 32 32 * 33 33 * @since 2.1.0 … … 36 36 37 37 /** 38 * Endpoint Mask for year38 * Endpoint mask that matches yearly archives. 39 39 * 40 40 * @since 2.1.0 … … 43 43 44 44 /** 45 * Endpoint Mask for month.45 * Endpoint mask that matches monthly archives. 46 46 * 47 47 * @since 2.1.0 … … 50 50 51 51 /** 52 * Endpoint Mask for day.52 * Endpoint mask that matches daily archives. 53 53 * 54 54 * @since 2.1.0 … … 57 57 58 58 /** 59 * Endpoint Mask forroot.59 * Endpoint mask that matches the site root. 60 60 * 61 61 * @since 2.1.0 … … 64 64 65 65 /** 66 * Endpoint Mask for comments.66 * Endpoint mask that matches comment feeds. 67 67 * 68 68 * @since 2.1.0 … … 71 71 72 72 /** 73 * Endpoint Mask for searches. 73 * Endpoint mask that matches searches. 74 * 75 * Note that this only matches a search at a "pretty" URL such as 76 * `/search/my-search-term`, not `?s=my-search-term`. 74 77 * 75 78 * @since 2.1.0 … … 78 81 79 82 /** 80 * Endpoint Mask for categories.83 * Endpoint mask that matches category archives. 81 84 * 82 85 * @since 2.1.0 … … 85 88 86 89 /** 87 * Endpoint Mask for tags.90 * Endpoint mask that matches tag archives. 88 91 * 89 92 * @since 2.3.0 … … 92 95 93 96 /** 94 * Endpoint Mask for authors.97 * Endpoint mask that matches author archives. 95 98 * 96 99 * @since 2.1.0 … … 99 102 100 103 /** 101 * Endpoint Mask forpages.104 * Endpoint mask that matches pages. 102 105 * 103 106 * @since 2.1.0 … … 106 109 107 110 /** 108 * Endpoint Mask forall archive views.111 * Endpoint mask that matches all archive views. 109 112 * 110 113 * @since 3.7.0 … … 113 116 114 117 /** 115 * Endpoint Mask foreverything.118 * Endpoint mask that matches everything. 116 119 * 117 120 * @since 2.1.0 … … 309 312 * @param string $name Name of the endpoint. 310 313 * @param int $places Endpoint mask describing the places the endpoint should be added. 314 * Accepts a mask of: 315 * - `EP_ALL` 316 * - `EP_NONE` 317 * - `EP_ALL_ARCHIVES` 318 * - `EP_ATTACHMENT` 319 * - `EP_AUTHORS` 320 * - `EP_CATEGORIES` 321 * - `EP_COMMENTS` 322 * - `EP_DATE` 323 * - `EP_DAY` 324 * - `EP_MONTH` 325 * - `EP_PAGES` 326 * - `EP_PERMALINK` 327 * - `EP_ROOT` 328 * - `EP_SEARCH` 329 * - `EP_TAGS` 330 * - `EP_YEAR` 311 331 * @param string|bool $query_var Name of the corresponding query variable. Pass `false` to skip registering a query_var 312 332 * for this endpoint. Defaults to the value of `$name`.
Note: See TracChangeset
for help on using the changeset viewer.