[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 Apr 30 09:27:06 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 shulard):
I though that `get_post` function will always return an WP_Post instance
so `$_post->ID` will always be defined. It can be null but it's defined.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40286#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list