[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
Sat May 13 17:36:55 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: has-patch 2nd-opinion | Focuses:
-----------------------------------+------------------
Comment (by rachelbaker):
@shulard `get_post()` can return `null`. These two functions can be used
anywhere, and cannot assume the post global is populated.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40286#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list