[wp-trac] [WordPress Trac] #17034: E_NOTICE with WP_DEBUG when calling get_the_ID()
WordPress Trac
noreply at wordpress.org
Thu Jun 26 02:04:40 UTC 2014
#17034: E_NOTICE with WP_DEBUG when calling get_the_ID()
-------------------------------+-----------------------------
Reporter: tillkruess | Owner: wonderboymusic
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.0
Component: Posts, Post Types | Version: 3.1
Severity: minor | Resolution: fixed
Keywords: | Focuses:
-------------------------------+-----------------------------
Changes (by wonderboymusic):
* owner: => wonderboymusic
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"28844"]:
{{{
#!CommitTicketReference repository="" revision="28844"
Check for the existence of `$post` before using it in `get_the_ID()`.
Return `false` if it doesn't exist.
Props UmeshSingla.
Fixes #17034.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/17034#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list