[wp-trac] [WordPress Trac] #23231: preprocess_comment should get the normalised comment data
WordPress Trac
noreply at wordpress.org
Wed May 28 21:54:12 UTC 2014
#23231: preprocess_comment should get the normalised comment data
-------------------------------------------------+-----------------------
Reporter: westi | Owner: dkotter
Type: defect (bug) | Status: assigned
Priority: low | Milestone: 4.0
Component: Comments | Version: 3.5
Severity: minor | Resolution:
Keywords: westi-like has-patch good-first-bug | Focuses:
-------------------------------------------------+-----------------------
Comment (by nacin):
Hi dkotter, this patch looks like a good start. I think we could probably
split the code after the filter into two parts — normalization and
sanitization. Standardize on user_id before the filter, cast it to an
integer after. Basically, take the if statement and move it up, while
leave the elseif there.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/23231#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list