# Discourse WordPress plugin version 0.7.0

**URL:** <https://meta.discourse.org/t/discourse-wordpress-plugin-version-0-7-0/44461>\
**Category:** WordPress\
**Created:** [May 18, 2016, 10:54pm UTC](https://meta.discourse.org/t/discourse-wordpress-plugin-version-0-7-0/44461 "2016-05-18T22:54:39Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [July 20, 2016, 8:09pm UTC](https://meta.discourse.org/t/discourse-wordpress-plugin-version-0-7-0/44461/15 "2016-07-20T20:09:46Z")

</div>

> [@Swissendo](#):
>
> The {comment\_url} tag seems to only output the current page URL with /%7Bcomment\_url%7D added to the end.

I’ll look at that.

> [@Swissendo](#):
>
> The weird thing is that this only happens with some Emojis and comments, while others are fine.

Yes this is because we’re trying to fix the Discourse urls with a regular expression 😛

> <https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454>

It falls apart if there is an absolute image path followed by a relative one. I think the emoji image paths have been fixed in the latest version of Discourse, so the best solution is to update the version of Discourse you are using.

> [@Swissendo](#):
>
> I was able to edit discourse-comment.php to change the Leave a reply/Replies/Reply-Strings, but I would have to do that with every update. Is there any way to do this via the functions.php? I’ve tried the method from the wiki, but that didn’t work.

Does this work for you?

```plaintext
function discourse_no_replies( $input ) {
	ob_start();
	?>

	<div id="comments" class="comments-area">
		<div class="respond comment-respond">
			<h3 id="reply-title" class="comment-reply-title"><a href="{topic_url}">Join the discussion on our forum</a></h3>
		</div>
	</div>

  <?php
	$output = ob_get_clean();
	return $output;
}
add_filter( 'discourse_no_replies_html', 'discourse_no_replies' );

```

* * *

Edit: If all you are trying to do is change the text content, there is an easier way to do it. I’ll add some documentation for overriding the plugin’s text content soon. But here is a quick example that could be added to your theme’s functions.php file.

```plaintext
add_filter( 'gettext', 'change_continue_discussion_text', 20, 3 );
function change_continue_discussion_text( $translated_text, $text, $domain ) {
	switch ( $translated_text ) {
		case 'Continue the discussion' :
			$translated_text = __( 'Join the discussion', 'wp-discourse' );
			break;
	}

	return $translated_text;
}

```

---

_[View the full topic](https://meta.discourse.org/t/discourse-wordpress-plugin-version-0-7-0/44461)._
