[wp-trac] [WordPress Trac] #13471: Pagination in Blog Post Won't Display Past Page 1
WordPress Trac
wp-trac at lists.automattic.com
Tue Aug 31 06:39:30 UTC 2010
#13471: Pagination in Blog Post Won't Display Past Page 1
--------------------------+-------------------------------------------------
Reporter: krowland08 | Owner: nacin
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 3.0.2
Component: Formatting | Version: 3.0
Severity: critical | Keywords: has-patch
--------------------------+-------------------------------------------------
Changes (by nacin):
* keywords: has-patch commit => has-patch
* owner: => nacin
* status: new => reviewing
Comment:
Actually, no need for the conditional. explode() will always return an
array, with a size of one if there's no child categories.
Also, end(explode()) triggers an E_STRICT here, which means it likely
throws a fatal on PHP 5.0.5 and 4.4 (#14160). Solution is to do it in two
steps, or awkwardly assign a variable inside, like `end( $foo =
explode(...) )`.
Patch attached, untested, should have proper logic.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13471#comment:14>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list