$args['per_page'
] = 0;
$args['page'
] = 0;
} $cpage =
$args['page'
];
if ( '' ==
$cpage ) { if ( !
empty( $in_comment_loop ) ) { $cpage =
get_query_var( 'cpage'
);
} else { // Requires a database hit, so we only do it when we can't figure out from context.
$cpage =
get_page_of_comment( $comment->comment_ID,
$args );
} } /*
* If the default page displays the oldest comments, the permalinks for comments on the default page
* do not need a 'cpage' query var.
*/
if ( 'oldest' ===
get_option( 'default_comments_page'
) && 1 ===
$cpage ) { $cpage = '';
} }