WordPress.org

Make WordPress Core

Ticket #16303: 16303.2.diff

File 16303.2.diff, 807 bytes (added by duck_, 2 years ago)
  • wp-includes/rewrite.php

     
    200200define('EP_PAGES', 4096); 
    201201 
    202202/** 
     203 * Endpoint Mask for custom post type archives.  
     204 * 
     205 * @since 3.4.0 
     206 */ 
     207define( 'EP_CPT_ARCHIVE', 8192 ); 
     208 
     209/** 
     210 * Endpoint Mask for all archive views. 
     211 * 
     212 * @since 3.4.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 * Endpoint Mask for everything. 
    204218 * 
    205219 * @since 2.1.0 
    206220 */ 
    207 define('EP_ALL', 8191); 
     221define( 'EP_ALL', EP_PERMALINK | EP_ATTACHMENT | EP_ROOT | EP_COMMENTS | EP_SEARCH | EP_PAGES | EP_ALL_ARCHIVES ); 
    208222 
    209223/** 
    210224 * Add an endpoint, like /trackback/.