Make WordPress Core

Ticket #16303: 16303.diff

File 16303.diff, 2.0 KB (added by westi, 14 years ago)
  • public/wp-includes/rewrite.php

    ### Eclipse Workspace Patch 1.0
    #P trunk.domain
     
    193193define('EP_PAGES', 4096);
    194194
    195195/**
     196 * Endpoint Mask for Custom Post Type Archives.
     197 *
     198 * @since 3.1.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/**
    203  * Add an endpoint, like /trackback/.
     210 * Endpoint Mask for all archive views.
     211 *
     212 * @since 3.1.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
     217/**
     218 * Add a new endpoint, like /trackback/.
    204219 *
    205220 * The endpoints are added to the end of the request. So a request matching
    206221 * "/2008/10/14/my_post/myep/", the endpoint will be "/myep/".
     
    212227 * @see WP_Rewrite::add_endpoint() Parameters and more description.
    213228 * @uses $wp_rewrite
    214229 *
    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_*
    217232 */
    218233function add_rewrite_endpoint($name, $places) {
    219234        global $wp_rewrite;
     
    18251840        }
    18261841
    18271842        /**
    1828          * Add an endpoint, like /trackback/.
     1843         * Add a new endpoint, like /trackback/.
    18291844         *
    1830          * To be inserted after certain URL types (specified in $places).
     1845         * To be inserted after certain URL types.
    18311846         *
    18321847         * @since 2.1.0
    18331848         * @access public
    18341849         *
    18351850         * @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_*
    18371852         */
    18381853        function add_endpoint($name, $places) {
    18391854                global $wp;