### Eclipse Workspace Patch 1.0
#P wordpress-trunk
|
|
|
193 | 193 | define('EP_PAGES', 4096); |
194 | 194 | |
195 | 195 | /** |
| 196 | * Endpoint Mask for Custom Post Type Archives. |
| 197 | * |
| 198 | * @since 3.2.0 |
| 199 | */ |
| 200 | define('EP_CPT_ARCHIVE', 8192); |
| 201 | |
| 202 | /** |
196 | 203 | * Endpoint Mask for everything. |
197 | 204 | * |
198 | 205 | * @since 2.1.0 |
199 | 206 | */ |
200 | | define('EP_ALL', 8191); |
| 207 | define('EP_ALL', 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_CPT_ARCHIVE); |
201 | 208 | |
202 | 209 | /** |
| 210 | * Endpoint Mask for all archive views. |
| 211 | * |
| 212 | * @since 3.2.0 |
| 213 | */ |
| 214 | define('EP_ALL_ARCHIVES', EP_DATE | EP_YEAR | EP_MONTH | EP_DAY | EP_CATEGORIES | EP_TAGS | EP_AUTHORS | EP_CPT_ARCHIVE); |
| 215 | |
| 216 | /** |
203 | 217 | * Add an endpoint, like /trackback/. |
204 | 218 | * |
205 | 219 | * The endpoints are added to the end of the request. So a request matching |
… |
… |
|
212 | 226 | * @see WP_Rewrite::add_endpoint() Parameters and more description. |
213 | 227 | * @uses $wp_rewrite |
214 | 228 | * |
215 | | * @param unknown_type $name |
216 | | * @param unknown_type $places |
| 229 | * @param string $name Name of endpoint. |
| 230 | * @param int $places Bitmask of URL-types (EP_* constants) endpoint is used for. |
217 | 231 | */ |
218 | 232 | function add_rewrite_endpoint($name, $places) { |
219 | 233 | global $wp_rewrite; |
… |
… |
|
1827 | 1841 | /** |
1828 | 1842 | * Add an endpoint, like /trackback/. |
1829 | 1843 | * |
1830 | | * To be inserted after certain URL types (specified in $places). |
| 1844 | * To be inserted after certain URL types. |
1831 | 1845 | * |
1832 | 1846 | * @since 2.1.0 |
1833 | 1847 | * @access public |
1834 | 1848 | * |
1835 | 1849 | * @param string $name Name of endpoint. |
1836 | | * @param array $places URL types that endpoint can be used. |
| 1850 | * @param int $places Bitmask of URL-types (EP_* constants) endpoint is used for. |
1837 | 1851 | */ |
1838 | 1852 | function add_endpoint($name, $places) { |
1839 | 1853 | global $wp; |