Changeset 9831 for trunk/wp-includes/link-template.php
- Timestamp:
- 11/21/2008 05:33:05 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/link-template.php
r9767 r9831 1231 1231 $base = trailingslashit( get_bloginfo( 'home' ) ); 1232 1232 1233 $result = $base . $request;1233 $result = user_trailingslashit($base . $request); 1234 1234 1235 1235 if ( 'newest' == get_option('default_comments_page') ) { 1236 1236 if ( $pagenum != $max_page ) { 1237 1237 if ( $wp_rewrite->using_permalinks() ) 1238 $result = user_trailingslashit( trailingslashit($ base . $request) . 'comment-page-' . $pagenum, 'commentpaged');1238 $result = user_trailingslashit( trailingslashit($result) . 'comment-page-' . $pagenum, 'commentpaged'); 1239 1239 else 1240 $result = add_query_arg( 'cpage', $pagenum, $ base . $request );1240 $result = add_query_arg( 'cpage', $pagenum, $result ); 1241 1241 } 1242 1242 } elseif ( $pagenum > 1 ) { 1243 1243 if ( $wp_rewrite->using_permalinks() ) 1244 $result = user_trailingslashit( trailingslashit($ base . $request) . 'comment-page-' . $pagenum, 'commentpaged');1244 $result = user_trailingslashit( trailingslashit($result) . 'comment-page-' . $pagenum, 'commentpaged'); 1245 1245 else 1246 $result = add_query_arg( 'cpage', $pagenum, $ base . $request );1246 $result = add_query_arg( 'cpage', $pagenum, $result ); 1247 1247 } 1248 1248
Note: See TracChangeset
for help on using the changeset viewer.