[wp-trac] [WordPress Trac] #17034: E_NOTICE with WP_DEBUG when calling get_the_ID()
WordPress Trac
noreply at wordpress.org
Fri Dec 20 09:24:41 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 SergeyBiryukov):
Replying to [comment:3 jtsternberg]:
> Seems if we addressed the notice issue, it would be a decent way to
check if there is a post object available.
`get_post()` appears to be the correct way to check for that.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17034#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list