[wp-trac] [WordPress Trac] #11222: PHP Notice while untrashing comment
WordPress Trac
wp-trac at lists.automattic.com
Sat Nov 21 20:38:13 UTC 2009
#11222: PHP Notice while untrashing comment
--------------------------+-------------------------------------------------
Reporter: sirzooro | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.9
Component: Trash | Version: 2.9
Severity: normal | Keywords: needs-patch
--------------------------+-------------------------------------------------
Steps to reproduce:[[BR]]
- create a new comment (if you do not have one);[[BR]]
- go to the comments list;[[BR]]
- click "Edit";[[BR]]
- click "Move to Trash" (you should return to comment list);[[BR]]
- click "Undo" to untrash comment.
When you do this, following notice will appear:[[BR]]
Notice: Undefined index: user_ID in C:\wordpress29.local\wp-
includes\comment.php on line 1079
Function `wp_filter_comment()` is called by `wp_new_comment()` and
`wp_update_comment()`. First function uses `user_ID`, second `user_id`.
First function calls `preprocess_comment` filter; second one takes data
from DB, where field name is in lowercase.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11222>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list