[wp-trac] [WordPress Trac] #19412: Changeset 18995 can lead to Notice: Undefined index: wp_the_query
WordPress Trac
wp-trac at lists.automattic.com
Sun Dec 4 22:31:34 UTC 2011
#19412: Changeset 18995 can lead to Notice: Undefined index: wp_the_query
-----------------------------+----------------------
Reporter: bobbingwide | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Query | Version: 3.3
Severity: normal | Resolution: wontfix
Keywords: has-patch close |
-----------------------------+----------------------
Comment (by bobbingwide):
I didn't see the IRC discussion but I would have opted for alternative A.
IMHO it's better defensive coding.
Who says there's a problem if wp_reset_query is called before
query_posts().
And it still doesn't explain why PHP masked the Notice when the & was
present.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19412#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list