Make WordPress Core


Ignore:
Timestamp:
04/24/2010 02:42:30 PM (16 years ago)
Author:
dd32
Message:

Change custom post_type default Rewrite endpoint mask to EP_PERMALINK to ensure comment paging rules are added. Removes redundant/non-usable EP_NONE branch. Fixes #13086

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/rewrite.php

    r14155 r14219  
    14001400
    14011401            //only on pages with comments add ../comment-page-xx/
    1402             if ( EP_PAGES & $ep_mask || EP_PERMALINK & $ep_mask || EP_NONE & $ep_mask )
     1402            if ( EP_PAGES & $ep_mask || EP_PERMALINK & $ep_mask )
    14031403                $rewrite = array_merge($rewrite, array($commentmatch => $commentquery));
    14041404            else if ( EP_ROOT & $ep_mask && get_option('page_on_front') )
Note: See TracChangeset for help on using the changeset viewer.