[wp-trac] [WordPress Trac] #54159: comments_open() & pings_open() trigger PHP Notice when called on a page without a $post

WordPress Trac noreply at wordpress.org
Tue Nov 16 19:03:35 UTC 2021


#54159: comments_open() & pings_open() trigger PHP Notice when called on a page
without a $post
--------------------------+-----------------------------
 Reporter:  dd32          |       Owner:  hellofromTonya
     Type:  defect (bug)  |      Status:  accepted
 Priority:  normal        |   Milestone:  5.9
Component:  Comments      |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------------
Changes (by hellofromTonya):

 * owner:  (none) => hellofromTonya
 * status:  new => accepted


Comment:

 Though today is 5.9 Beta 1, assigning to me to check test coverage and get
 this one committed.

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


More information about the wp-trac mailing list