[wp-trac] [WordPress Trac] #25196: add new function get_comment_post_ID()
WordPress Trac
noreply at wordpress.org
Wed Sep 4 21:25:29 UTC 2013
#25196: add new function get_comment_post_ID()
-------------------------+------------------------------
Reporter: alexvorn2 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version:
Severity: normal | Resolution:
Keywords: |
-------------------------+------------------------------
Comment (by nofearinc):
I would definitely go for checking against null or a WP_Error instance
rather than getting a notice which is not interceptable.
For example, an serialized array of comment IDs is stored by a random
plugin in postmeta for a post (for stats purposes) and you want to read
them later. Then it's not going to be handled properly?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25196#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list