[wp-trac] [WordPress Trac] #17034: E_NOTICE with WP_DEBUG when calling get_the_ID()
WordPress Trac
noreply at wordpress.org
Fri Dec 20 03:17:35 UTC 2013
#17034: E_NOTICE with WP_DEBUG when calling get_the_ID()
--------------------------+----------------------
Reporter: tillkruess | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: General | Version: 3.1
Severity: minor | Resolution: wontfix
Keywords: |
--------------------------+----------------------
Comment (by jtsternberg):
Curious, why should get_the_ID() only be called from inside The Loop?
Seems if we addressed the notice issue, it would be a decent way to check
if there is a post object available.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17034#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list