[wp-hackers] wp_get_current_commenter

Louy louy08 at gmail.com
Thu Aug 12 18:13:16 UTC 2010


hmmm, i looked through every available filter, it isn't there!

i think this could be fixed with changing 1 line of code only!

in
http://svn.automattic.com/wordpress/trunk/wp-includes/comment-template.php

	/**
> 	 * Comment author information fetched from the comment cookies.
> 	 *
>
> 	 * @uses wp_get_current_commenter()
> 	 */
> 	$commenter = wp_get_current_commenter();
>
> should be changed to:

> 	/**
> 	 * Comment author information fetched from the comment cookies.
> 	 *
> 	 * @uses wp_get_current_commenter()
> 	 */
> 	$commenter = apply_filters('wp_get_current_commenter', wp_get_current_commenter());
>
>
That's the missing filter... yet any alternatives?


On Thu, Aug 12, 2010 at 9:02 PM, Ryan Bilesky <rbilesky at gmail.com> wrote:

> Have you looked at the comment filters?  If I am understanding what you are
> trying to do correctly using a filter should work.
>
> On Thu, Aug 12, 2010 at 10:17 AM, Louy <louy08 at gmail.com> wrote:
>
> > Hello all :)
> >
> > I'm having some kinda problem and i need help :/
> > I'm trying to change the commenter data, the default ones in the comment
> > form while the user isn't logged in, i've seen that the data returns from
> > calling the function "*wp_get_current_commenter*" which is called by
> > comment_form() in
> >
> http://svn.automattic.com/wordpress/trunk/wp-includes/comment-template.php
> >
> > what i noticed is that there's no way to change these data, check the
> file
> > http://svn.automattic.com/wordpress/trunk/wp-includes/comment.php
> >
> > I think that *wp_get_current_commenter *should be hooked into an action
> > called *wp_get_current_commenter* so i'm able to edit those data! is
> there
> > anyway that i've missed!??
> > Please help by checking that. Thanks :)
> >
> >
> > Best.
> >
> > --
> > Louy
> > http://louyblog.wordpress.com/
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



-- 
Louy
http://louyblog.wordpress.com/


More information about the wp-hackers mailing list