WordPress.org

Make WordPress Core

Ticket #16303: 16303.patch

File 16303.patch, 1.8 KB (added by hakre, 3 years ago)
  • wp-includes/rewrite.php

    ### Eclipse Workspace Patch 1.0
    #P wordpress-trunk
     
    193193define('EP_PAGES', 4096); 
    194194 
    195195/** 
     196 * Endpoint Mask for Custom Post Type Archives. 
     197 * 
     198 * @since 3.2.0 
     199 */ 
     200define('EP_CPT_ARCHIVE', 8192); 
     201 
     202/** 
    196203 * Endpoint Mask for everything. 
    197204 * 
    198205 * @since 2.1.0 
    199206 */ 
    200 define('EP_ALL', 8191); 
     207define('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); 
    201208 
    202209/** 
     210 * Endpoint Mask for all archive views. 
     211 * 
     212 * @since 3.2.0 
     213 */ 
     214define('EP_ALL_ARCHIVES', EP_DATE | EP_YEAR | EP_MONTH | EP_DAY | EP_CATEGORIES | EP_TAGS | EP_AUTHORS | EP_CPT_ARCHIVE); 
     215 
     216/** 
    203217 * Add an endpoint, like /trackback/. 
    204218 * 
    205219 * The endpoints are added to the end of the request. So a request matching 
     
    212226 * @see WP_Rewrite::add_endpoint() Parameters and more description. 
    213227 * @uses $wp_rewrite 
    214228 * 
    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. 
    217231 */ 
    218232function add_rewrite_endpoint($name, $places) { 
    219233        global $wp_rewrite; 
     
    18271841        /** 
    18281842         * Add an endpoint, like /trackback/. 
    18291843         * 
    1830          * To be inserted after certain URL types (specified in $places). 
     1844         * To be inserted after certain URL types. 
    18311845         * 
    18321846         * @since 2.1.0 
    18331847         * @access public 
    18341848         * 
    18351849         * @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. 
    18371851         */ 
    18381852        function add_endpoint($name, $places) { 
    18391853                global $wp;