[wp-hackers] Known when on Comment page x?

Austin Matzko if.website at gmail.com
Mon Dec 15 19:55:34 GMT 2008


On Mon, Dec 15, 2008 at 1:25 PM, Otto <otto at ottodestruct.com> wrote:
> $page = get_query_var('cpage');
> if (!$page) $page = 1;

Actually, when paged comments are set to show the last page by
default, page 1 is not the permalink page, it's the page with the
oldest comments. So you can't assume that an empty cpage query
variable is page 1.


More information about the wp-hackers mailing list