[wp-trac] [WordPress Trac] #17034: E_NOTICE with WP_DEBUG when calling get_the_ID()
WordPress Trac
noreply at wordpress.org
Wed Jun 18 12:36:19 UTC 2014
#17034: E_NOTICE with WP_DEBUG when calling get_the_ID()
-------------------------------+-----------------------
Reporter: tillkruess | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 4.0
Component: Posts, Post Types | Version: 3.1
Severity: minor | Resolution:
Keywords: | Focuses:
-------------------------------+-----------------------
Comment (by UmeshSingla):
Replying to [comment:8 SergeyBiryukov]:
> Replying to [comment:7 UmeshSingla]:
> > get_post() can't be used as well, it returns the ID for the latest
post on wp-signup.php, I didn't get the logic for that.
>
> That sounds like a separate issue.
>
> We could probably reconsider this to avoid the notice. Your patch on
#28572 seems good.
Yes, I'll try too replicate the get_post() issue, If it confirms, I'll go
for a separate ticket and for this ticket do i need to submit the patch
here again?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/17034#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list