[wp-trac] [WordPress Trac] #40286: It appears to me that comments_open() is passing the wrong args to apply_filters

WordPress Trac noreply at wordpress.org
Fri Apr 14 03:28:31 UTC 2017


#40286: It appears to me that comments_open() is passing the wrong args to
apply_filters
-------------------------------------------------+-------------------------
 Reporter:  sringwood                            |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  4.8
Component:  Comments                             |     Version:  1.5
 Severity:  normal                               |  Resolution:
 Keywords:  good-first-bug has-patch needs-      |     Focuses:
  testing needs-docs                             |
-------------------------------------------------+-------------------------
Changes (by rachelbaker):

 * keywords:  good-first-bug has-patch needs-testing => good-first-bug has-
     patch needs-testing needs-docs


Comment:

 Looks like this also needs a change to the inline docs for the
 `comments_open` and `pings_open` filters since `$_post->ID` would always
 be an integer, and never a WP_Post object.

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


More information about the wp-trac mailing list