WordPress.org

Make WordPress Core

Changeset 14219


Ignore:
Timestamp:
04/24/10 14:42:30 (5 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

Location:
trunk/wp-includes
Files:
2 edited

Legend:

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

    r14158 r14219  
    800800 
    801801    // Args prefixed with an underscore are reserved for internal use. 
    802     $defaults = array('label' => false, 'singular_label' => false, 'description' => '', 'publicly_queryable' => null, 'exclude_from_search' => null, '_builtin' => false, '_edit_link' => 'post.php?post=%d', 'capability_type' => 'post', 'hierarchical' => false, 'public' => false, 'rewrite' => true, 'query_var' => true, 'supports' => array(), 'register_meta_box_cb' => null, 'taxonomies' => array(), 'show_ui' => null, 'menu_position' => null, 'menu_icon' => null, 'permalink_epmask' => EP_NONE ); 
     802    $defaults = array('label' => false, 'singular_label' => false, 'description' => '', 'publicly_queryable' => null, 'exclude_from_search' => null, '_builtin' => false, '_edit_link' => 'post.php?post=%d', 'capability_type' => 'post', 'hierarchical' => false, 'public' => false, 'rewrite' => true, 'query_var' => true, 'supports' => array(), 'register_meta_box_cb' => null, 'taxonomies' => array(), 'show_ui' => null, 'menu_position' => null, 'menu_icon' => null, 'permalink_epmask' => EP_PERMALINK ); 
    803803    $args = wp_parse_args($args, $defaults); 
    804804    $args = (object) $args; 
  • 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.