[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:26:27 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:
-------------------------------+-----------------------
Changes (by SergeyBiryukov):

 * status:  closed => reopened
 * resolution:  wontfix =>
 * milestone:   => 4.0


Comment:

 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.

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


More information about the wp-trac mailing list