Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure before/after is amended to filtered comment_reply_link #1118

Merged
merged 1 commit into from
May 5, 2018

Conversation

westonruter
Copy link
Member

@westonruter westonruter commented May 4, 2018

The \get_comment_reply_link() function returns with:

return apply_filters( 'comment_reply_link', $args['before'] . $link . $args['after'], $args, $comment, $post );

Currently when we re-construct the $link we're not adding the before/after args in AMP_Theme_Support::filter_comment_reply_link() when returning:

https://github.com/Automattic/amp-wp/blob/2328f71ea256640d6bb2c6122e11e5aab6afa499/includes/class-amp-theme-support.php#L774-L781

So we need to ensure that the before/after text is added.

@westonruter westonruter added this to the v0.7.1 milestone May 4, 2018
@westonruter westonruter force-pushed the fix/comment-reply-link-before-after branch from 450e234 to 0efb634 Compare May 5, 2018 00:05
@westonruter westonruter requested a review from kienstra May 5, 2018 00:08
Copy link
Member

@amedina amedina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@westonruter westonruter merged commit f7dcbfd into 0.7 May 5, 2018
@westonruter westonruter deleted the fix/comment-reply-link-before-after branch May 5, 2018 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants