| 1 | Index: wp-includes/post.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-includes/post.php (revision 16743) |
|---|
| 4 | +++ wp-includes/post.php (working copy) |
|---|
| 5 | @@ -985,7 +985,7 @@ |
|---|
| 6 | $wp_rewrite->add_rule( "{$archive_slug}/$feeds/?$", "index.php?post_type=$post_type" . '&feed=$matches[1]', 'top' ); |
|---|
| 7 | } |
|---|
| 8 | if ( $args->rewrite['pages'] ) |
|---|
| 9 | - $wp_rewrite->add_rule( "{$archive_slug}/page/([0-9]{1,})/?$", "index.php?post_type=$post_type" . '&paged=$matches[1]', 'top' ); |
|---|
| 10 | + $wp_rewrite->add_rule( "{$archive_slug}/{$wp_rewrite->pagination_base}/([0-9]{1,})/?$", "index.php?post_type=$post_type" . '&paged=$matches[1]', 'top' ); |
|---|
| 11 | } |
|---|
| 12 | |
|---|
| 13 | $wp_rewrite->add_permastruct($post_type, "{$args->rewrite['slug']}/%$post_type%", $args->rewrite['with_front'], $args->permalink_epmask); |
|---|