[wp-trac] [WordPress Trac] #2590: New Filter: comment_post_redirect
WordPress Trac
wp-trac at lists.automattic.com
Thu Mar 23 00:47:03 GMT 2006
#2590: New Filter: comment_post_redirect
----------------------------+-----------------------------------------------
Id: 2590 | Status: new
Component: Administration | Modified: Thu Mar 23 00:47:03 2006
Severity: enhancement | Milestone: 2.1
Priority: normal | Version: 2.1
Owner: anonymous | Reporter: markjaquith
----------------------------+-----------------------------------------------
comment_post_redirect is a filter on the $location that is wp_redirect()ed
after a successful comment. It also passes the $comment object as a
second value.
Use case: modify the URI that people go do, to do one of many things,
including passing a message. for instance, you could add ?message=1 and
then have wp_head look for $_GET['message'] == "1" and do a JS alert or
something. You could notify of spam, or moderation. Or, on spam or
moderation, you could redirect to a captcha or something to allow someone
to redeem themselves. Would really be quite useful.
--
Ticket URL: <http://trac.wordpress.org/ticket/2590>
WordPress Trac <http://wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list