[wp-trac] [WordPress Trac] #18316: admin comments.php does not allow for non javascript custom actions in comment row action links
WordPress Trac
wp-trac at lists.automattic.com
Tue Aug 2 13:39:59 UTC 2011
#18316: admin comments.php does not allow for non javascript custom actions in
comment row action links
----------------------------+------------------------------
Reporter: commentluv | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version:
Severity: normal | Resolution: fixed
Keywords: |
----------------------------+------------------------------
Changes (by commentluv):
* status: new => closed
* resolution: => fixed
Comment:
Replying to [comment:1 dd32]:
> > if the user has disabled javascript then the link will not work even
if I format the href of the link in the same format as the trash link eg.
>
> Just a thought, Instead of directing the link to the comments.php file,
perhaps (while you can't do it in the way you're currently trying to) you
can instead direct the link to admin-post.php, handle it, and redirect
back to the comments page.
yup, good idea, it's what I kind of ended up doing. I just did an
add_query_arg() with an array of the comment id, action and nonce and
caught it in admin_init action and then redirect back to referring page
with query args removed.
seems to work fine on all pages that show the comment row action links
I always come up with a solution precisely 2 minutes after I post to trac
:-o
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18316#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list