[wp-trac] [WordPress Trac] #11222: PHP Notice while untrashing comment
WordPress Trac
wp-trac at lists.automattic.com
Mon Nov 23 18:12:38 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
--------------------------+-------------------------------------------------
Comment(by ryan):
The confusion stems from the $user_ID global. Attached patch defines a
$user_id global as well, uses $user_id in wp-comments-post.php, and makes
$user_id the preferred variable in wp_filter_comment() and
wp_new_comment() with back compat checks for $user_ID.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11222#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list