[wp-trac] [WordPress Trac] #23231: preprocess_comment should get the normalised comment data

WordPress Trac noreply at wordpress.org
Mon Jun 2 15:06:08 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 dkotter):

 Replying to [comment:9 SergeyBiryukov]:
 > We could probably just save the initial values to separate variables and
 then compare them to filtered values.

 Ah, yeah, not sure why I didn't think of that. Most recent patch takes
 that approach. Normalizes data before filter, saving user_id to a
 variable, then after filter, checks if it's been changed, and if so, re-
 normalizes things.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/23231#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list