Changeset 34492 for trunk/src/wp-includes/class-wp-rewrite.php
- Timestamp:
- 09/24/2015 02:03:05 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-rewrite.php
r33751 r34492 1072 1072 $sub2 .= '?$'; 1073 1073 1074 //post pagination, e.g. <permalink>/2/ 1075 $match = $match . '(/[0-9]+)?/?$'; 1074 // Post pagination, e.g. <permalink>/2/ 1075 // Previously: '(/[0-9]+)?/?$', which produced '/2' for page. 1076 // When cast to int, returned 0. 1077 $match = $match . '(?:/([0-9]+))?/?$'; 1076 1078 $query = $index . '?' . $query . '&page=' . $this->preg_index($num_toks + 1); 1077 1079 } else { //not matching a permalink so this is a lot simpler
Note: See TracChangeset
for help on using the changeset viewer.