WordPress.org

Make WordPress Core

Changeset 16787


Ignore:
Timestamp:
12/08/10 07:02:52 (5 years ago)
Author:
nacin
Message:

Use pagination base for CPT archives. props scribu, fixes #15728.

File:
1 edited

Legend:

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

    r16768 r16787  
    986986            } 
    987987            if ( $args->rewrite['pages'] ) 
    988                 $wp_rewrite->add_rule( "{$archive_slug}/page/([0-9]{1,})/?$", "index.php?post_type=$post_type" . '&paged=$matches[1]', 'top' ); 
     988                $wp_rewrite->add_rule( "{$archive_slug}/{$wp_rewrite->pagination_base}/([0-9]{1,})/?$", "index.php?post_type=$post_type" . '&paged=$matches[1]', 'top' ); 
    989989        } 
    990990 
Note: See TracChangeset for help on using the changeset viewer.