WordPress.org

Make WordPress Core

Changeset 11419


Ignore:
Timestamp:
05/20/2009 10:24:37 PM (9 years ago)
Author:
ryan
Message:

Fix comment paging for static front page. Props DD32. fixes #8598

File:
1 edited

Legend:

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

    r11350 r11419  
    13481348            $commentquery = $index . '?' . $query . '&cpage=' . $this->preg_index($num_toks + 1);
    13491349
     1350            if ( get_option('page_on_front') ) {
     1351                //create query for Root /comment-page-xx
     1352                $rootcommentmatch = $match . $commentregex;
     1353                $rootcommentquery = $index . '?' . $query . '&page_id=' . get_option('page_on_front') . '&cpage=' . $this->preg_index($num_toks + 1);
     1354            }
     1355
    13501356            //create query for /feed/(feed|atom|rss|rss2|rdf)
    13511357            $feedmatch = $match . $feedregex;
     
    13721378            if ( EP_PAGES & $ep_mask || EP_PERMALINK & $ep_mask || EP_NONE & $ep_mask )
    13731379                $rewrite = array_merge($rewrite, array($commentmatch => $commentquery));
     1380            else if ( EP_ROOT & $ep_mask && get_option('page_on_front') )
     1381                $rewrite = array_merge($rewrite, array($rootcommentmatch => $rootcommentquery));
    13741382
    13751383            //do endpoints
Note: See TracChangeset for help on using the changeset viewer.