[wp-trac] [WordPress Trac] #23231: preprocess_comment should get the normalised comment data
WordPress Trac
noreply at wordpress.org
Fri Jan 18 11:38:03 UTC 2013
#23231: preprocess_comment should get the normalised comment data
-----------------------------------------+--------------------------
Reporter: westi | Type: defect (bug)
Status: new | Priority: low
Milestone: Awaiting Review | Component: Comments
Version: 3.5 | Severity: minor
Keywords: needs-patch westi-like easy |
-----------------------------------------+--------------------------
In '''wp_new_comment''' we normalise some data like user_ID/user_id so
that we support people providing both versions but we fire the filter to
preprocess the comment first.
This means if someone writes a filter they have to re-implement this
normalisation if they want to filter the comment data properly.
An example of where this currently goes wrong is when Akismet tries to
fetch the roles of the user submitting the comment -
http://plugins.trac.wordpress.org/browser/akismet/tags/2.5.7/akismet.php#L332
This only works if the comment comes via a route that supplies the data
correctly and not one that doesn't.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23231>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list