[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
Sun May 14 03:50:05 UTC 2017
#40286: It appears to me that comments_open() is passing the wrong args to
apply_filters
------------------------------+--------------------------
Reporter: sringwood | Owner: rachelbaker
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.8
Component: Comments | Version: 1.5
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses:
------------------------------+--------------------------
Changes (by rachelbaker):
* owner: => rachelbaker
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"40666"]:
{{{
#!CommitTicketReference repository="" revision="40666"
Comments: Correct the $post_id parameter passed to the 'comments_open' and
'pings_open' filters.
Fixes bug where previously the `$post_id` function argument was passed to
the '_open' filters, instead of the result of the `get_post()` call. If
the current post is not found, the `$post_id` filter parameter will be 0.
Props johnbillion, shulard, rachelbaker.
Fixes #40286.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40286#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list