Changeset 49670
- Timestamp:
- 11/19/2020 04:13:54 PM (4 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-rewrite.php
r49184 r49670 841 841 * @param string $permalink_structure The permalink structure. 842 842 * @param int $ep_mask Optional. Endpoint mask defining what endpoints are added to the structure. 843 * Accepts `EP_NONE`, `EP_PERMALINK`, `EP_ATTACHMENT`, `EP_DATE`, `EP_YEAR`, 844 * `EP_MONTH`, `EP_DAY`, `EP_ROOT`, `EP_COMMENTS`, `EP_SEARCH`, `EP_CATEGORIES`, 845 * `EP_TAGS`, `EP_AUTHORS`, `EP_PAGES`, `EP_ALL_ARCHIVES`, and `EP_ALL`. 843 * Accepts a mask of: 844 * - `EP_ALL` 845 * - `EP_NONE` 846 * - `EP_ALL_ARCHIVES` 847 * - `EP_ATTACHMENT` 848 * - `EP_AUTHORS` 849 * - `EP_CATEGORIES` 850 * - `EP_COMMENTS` 851 * - `EP_DATE` 852 * - `EP_DAY` 853 * - `EP_MONTH` 854 * - `EP_PAGES` 855 * - `EP_PERMALINK` 856 * - `EP_ROOT` 857 * - `EP_SEARCH` 858 * - `EP_TAGS` 859 * - `EP_YEAR` 846 860 * Default `EP_NONE`. 847 861 * @param bool $paged Optional. Whether archive pagination rules should be added for the structure. … … 1683 1697 * @param string $name Name of the endpoint. 1684 1698 * @param int $places Endpoint mask describing the places the endpoint should be added. 1699 * Accepts a mask of: 1700 * - `EP_ALL` 1701 * - `EP_NONE` 1702 * - `EP_ALL_ARCHIVES` 1703 * - `EP_ATTACHMENT` 1704 * - `EP_AUTHORS` 1705 * - `EP_CATEGORIES` 1706 * - `EP_COMMENTS` 1707 * - `EP_DATE` 1708 * - `EP_DAY` 1709 * - `EP_MONTH` 1710 * - `EP_PAGES` 1711 * - `EP_PERMALINK` 1712 * - `EP_ROOT` 1713 * - `EP_SEARCH` 1714 * - `EP_TAGS` 1715 * - `EP_YEAR` 1685 1716 * @param string|bool $query_var Optional. Name of the corresponding query variable. Pass `false` to 1686 1717 * skip registering a query_var for this endpoint. Defaults to the … … 1726 1757 * Default true. 1727 1758 * @type int $ep_mask The endpoint mask defining which endpoints are added to the structure. 1728 * Accepts `EP_NONE`, `EP_PERMALINK`, `EP_ATTACHMENT`, `EP_DATE`, `EP_YEAR`, 1729 * `EP_MONTH`, `EP_DAY`, `EP_ROOT`, `EP_COMMENTS`, `EP_SEARCH`, `EP_CATEGORIES`, 1730 * `EP_TAGS`, `EP_AUTHORS`, `EP_PAGES`, `EP_ALL_ARCHIVES`, and `EP_ALL`. 1759 * Accepts a mask of: 1760 * - `EP_ALL` 1761 * - `EP_NONE` 1762 * - `EP_ALL_ARCHIVES` 1763 * - `EP_ATTACHMENT` 1764 * - `EP_AUTHORS` 1765 * - `EP_CATEGORIES` 1766 * - `EP_COMMENTS` 1767 * - `EP_DATE` 1768 * - `EP_DAY` 1769 * - `EP_MONTH` 1770 * - `EP_PAGES` 1771 * - `EP_PERMALINK` 1772 * - `EP_ROOT` 1773 * - `EP_SEARCH` 1774 * - `EP_TAGS` 1775 * - `EP_YEAR` 1731 1776 * Default `EP_NONE`. 1732 1777 * @type bool $paged Whether archive pagination rules should be added for the structure. -
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.