[wp-trac] [WordPress Trac] #6441: is_single() is false on paged
posts
WordPress Trac
wp-trac at lists.automattic.com
Fri Mar 28 22:32:08 GMT 2008
#6441: is_single() is false on paged posts
------------------------+---------------------------------------------------
Reporter: tellyworth | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.7
Component: General | Version: 2.5
Severity: normal | Keywords:
------------------------+---------------------------------------------------
There are two forms of paged posts supported by wp_rewrite:
{{{
/2007/09/04/a-post-with-multiple-pages/page/2/
/2007/09/04/a-post-with-multiple-pages/2/
}}}
Both fail to set is_single() to true. They also fail to set is_paged().
Either one might be intentional behaviour, but it seems surprising - I
would expect both is_single() and is_paged() to be true for either URL.
The unit tests test_post_paged_long() and test_post_paged_short()
reproduce both:
http://svn.automattic.com/wordpress-tests/wp-testcase/test_query.php
The example URLs above come from the asdftestdata1 dataset, which can be
used to manually reproduce:
http://svn.automattic.com/wordpress-tests/wp-
testdata/export/asdftestblog1.2007-12-14.xml
--
Ticket URL: <http://trac.wordpress.org/ticket/6441>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list