### Eclipse Workspace Patch 1.0
#P trunk.domain
|
|
|
|
| 193 | 193 | define('EP_PAGES', 4096); |
| 194 | 194 | |
| 195 | 195 | /** |
| | 196 | * Endpoint Mask for Custom Post Type Archives. |
| | 197 | * |
| | 198 | * @since 3.1.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 | /** |
| 203 | | * Add an endpoint, like /trackback/. |
| | 210 | * Endpoint Mask for all archive views. |
| | 211 | * |
| | 212 | * @since 3.1.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 | |
| | 217 | /** |
| | 218 | * Add a new endpoint, like /trackback/. |
| 204 | 219 | * |
| 205 | 220 | * The endpoints are added to the end of the request. So a request matching |
| 206 | 221 | * "/2008/10/14/my_post/myep/", the endpoint will be "/myep/". |
| … |
… |
|
| 212 | 227 | * @see WP_Rewrite::add_endpoint() Parameters and more description. |
| 213 | 228 | * @uses $wp_rewrite |
| 214 | 229 | * |
| 215 | | * @param unknown_type $name |
| 216 | | * @param unknown_type $places |
| | 230 | * @param string $name Name of endpoint. |
| | 231 | * @param bitmask $places URL types that endpoint can be used OR'd bitmask of EP_* |
| 217 | 232 | */ |
| 218 | 233 | function add_rewrite_endpoint($name, $places) { |
| 219 | 234 | global $wp_rewrite; |
| … |
… |
|
| 1825 | 1840 | } |
| 1826 | 1841 | |
| 1827 | 1842 | /** |
| 1828 | | * Add an endpoint, like /trackback/. |
| | 1843 | * Add a new endpoint, like /trackback/. |
| 1829 | 1844 | * |
| 1830 | | * To be inserted after certain URL types (specified in $places). |
| | 1845 | * To be inserted after certain URL types. |
| 1831 | 1846 | * |
| 1832 | 1847 | * @since 2.1.0 |
| 1833 | 1848 | * @access public |
| 1834 | 1849 | * |
| 1835 | 1850 | * @param string $name Name of endpoint. |
| 1836 | | * @param array $places URL types that endpoint can be used. |
| | 1851 | * @param bitmask $places URL types that endpoint can be used OR'd bitmask of EP_* |
| 1837 | 1852 | */ |
| 1838 | 1853 | function add_endpoint($name, $places) { |
| 1839 | 1854 | global $wp; |