[wp-trac] [WordPress Trac] #17034: E_NOTICE with WP_DEBUG when calling get_the_ID()

WordPress Trac noreply at wordpress.org
Wed Jun 18 11:46:50 UTC 2014


#17034: E_NOTICE with WP_DEBUG when calling get_the_ID()
-------------------------------+----------------------
 Reporter:  tillkruess         |       Owner:
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:
Component:  Posts, Post Types  |     Version:  3.1
 Severity:  minor              |  Resolution:  wontfix
 Keywords:                     |     Focuses:
-------------------------------+----------------------

Comment (by UmeshSingla):

 Replying to [comment:4 SergeyBiryukov]
 >
 > `get_post()` appears to be the correct way to check for that.
 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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/17034#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list