# Discourse WordPress plugin version 0.7.0

**URL:** <https://meta.discourse.org/t/discourse-wordpress-plugin-version-0-7-0/44461>\
**Category:** WordPress\
**Created:** [18.Май.2016 22:54:39 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:** 17

<div class="post-metadata">

**Author:** ![Swissendo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/swissendo/32/116893_2.png) [@Swissendo](https://meta.discourse.org/u/Swissendo)\
**Post date:** [21.Июль.2016 07:03:48 UTC](https://meta.discourse.org/t/discourse-wordpress-plugin-version-0-7-0/44461/17 "2016-07-21T07:03:48Z")

</div>

Yes, I’ve tried the `add_filter( 'gettext', 'change_continue_discussion_text', 20, 3 );` method, but that erased several text blocks from the panel, while doing nothing on the site, so I just edited the plugin. I’m not even shure if I can translate that part, since it hooks into the `comments_number` and overwrites it? Or do I just need to use `discourse_comments_count`?

```
/**
 * Returns the comments number.
 *
 * If Discourse comments are enabled, returns the 'discourse_comments_count', otherwise
 * returns the $count value. Hooks into 'comments_number'.
 *
 * @param int $count The comment count supplied by WordPress.
 *
 * @return mixed|string
 */
function comments_number( $count ) {
	global $post;
	if ( $this->use_discourse_comments( $post->ID ) ) {
		$this->sync_comments( $post->ID );
		$count = get_post_meta( $post->ID, 'discourse_comments_count', true );
		if ( ! $count ) {
			$count = 'Leave a reply';
		} else {
			$count = ( 1 === intval( $count ) ) ? '1 Reply' : $count . ' Replies';
		}
	}

	return $count;
}

```

Also, thank you so much for your help and the quick fixes regarding the Emojis and `{comment_url}`!

**Edit:**

I’ve just noticed another problem with `comments.js` and links to YouTube. It seems unable to get the correct ID and replaces it with “undefined”:

```
<a href="https://www.youtube.com/watch?v=undefined" class="fancybox-youtube">https://www.youtube.com/watch?v=undefined</a>

```

This worked fine on 0.6.6…strange.

---

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