[wp-trac] [WordPress Trac] #29782: 'Before' and 'After' in get_comment_reply_link not working
WordPress Trac
noreply at wordpress.org
Mon Sep 29 01:44:24 UTC 2014
#29782: 'Before' and 'After' in get_comment_reply_link not working
--------------------------+-----------------------------
Reporter: stereoactivo | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version: 4.0
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Hi, I was using get_comment_reply_link, but 'before' and 'after'
parameters aren't working.
I'm using this:
{{{
comment_reply_link (array_merge ($args, array (
'before ' => '<button class="responder">',
'after' => '</button>',
'reply_text' => __ ('reply', mytheme),
)));
}}}
The output generated by wordpress doesn't include the strings that I used.
I think that is caused by this line:
{{{
/*comment-template.php, line 1341 */
return apply_filters( 'comment_reply_link', $before . $link . $after,
$args, $comment, $post );.
}}}
$before and $after aren't defined, and the values received in $args are
never used.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29782>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list