Changeset 11419
- Timestamp:
- 05/20/2009 10:24:37 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/rewrite.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/rewrite.php
r11350 r11419 1348 1348 $commentquery = $index . '?' . $query . '&cpage=' . $this->preg_index($num_toks + 1); 1349 1349 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 1350 1356 //create query for /feed/(feed|atom|rss|rss2|rdf) 1351 1357 $feedmatch = $match . $feedregex; … … 1372 1378 if ( EP_PAGES & $ep_mask || EP_PERMALINK & $ep_mask || EP_NONE & $ep_mask ) 1373 1379 $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)); 1374 1382 1375 1383 //do endpoints
Note: See TracChangeset
for help on using the changeset viewer.