WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/23/2008 06:55:22 PM (13 years ago)
Author:
ryan
Message:

pretty permalinks for comment paging. Props Viper007Bind. fixes #7942

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/link-template.php

    r9296 r9300  
    12431243*/
    12441244function paginate_comments_links($args = array()) {
    1245     global $wp_query;
     1245    global $wp_query, $wp_rewrite;
    12461246
    12471247    if ( !is_singular() )
     
    12601260        'add_fragment' => '#comments'
    12611261    );
     1262    if ( $wp_rewrite->using_permalinks() )
     1263        $defaults['base'] = user_trailingslashit(get_permalink() . 'comment-page-%#%', 'commentpaged');
     1264
    12621265    $args = wp_parse_args( $args, $defaults );
    12631266    $page_links = paginate_links( $args );
Note: See TracChangeset for help on using the changeset viewer.