[wp-trac] [WordPress Trac] #34997: preprocess_comment filter does not contain old user_ID field for user_id, instead it has new user_id field

WordPress Trac noreply at wordpress.org
Thu Dec 10 23:56:01 UTC 2015


#34997: preprocess_comment filter does not contain old user_ID field for user_id,
instead it has new user_id field
--------------------------+-----------------------------
 Reporter:  cookiesowns   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Comments      |    Version:  4.4
 Severity:  normal        |   Keywords:
  Focuses:  docs          |
--------------------------+-----------------------------
 in comments.php, line 1680, the old {{{ $commentdata['user_ID'] }}} field
 is not being set.

 As a result, all old filters using the old field name in
 preprocess_comment filter will not have the proper parameter set.

 I'm not sure what to do in this case, but we should update the PHPDOC
 above on line 1656 as $user_ID technically doesn't exist anymore..

 Should we set both fields when passing through to preprocess_comment or?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34997>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list