[wp-trac] [WordPress Trac] #42761: Undefined offset: -1 in wp-includes/post-template.php
WordPress Trac
noreply at wordpress.org
Fri Dec 1 03:15:01 UTC 2017
#42761: Undefined offset: -1 in wp-includes/post-template.php
-------------------------------+------------------------------
Reporter: twisted1919 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: 4.9.1
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses: template
-------------------------------+------------------------------
Changes (by dd32):
* keywords: => reporter-feedback
* focuses: => template
* component: General => Posts, Post Types
Comment:
Hey @twisted1919 and welcome back to Trac.
Can you provide some extra details on how you run into this? In what
situations is `$pages` an empty array for example?
For an empty post, `$pages` should be `array( 0 => '' )`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42761#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list