Skip to content

Commit

Permalink
Merge pull request #29 from Hackkzy/master
Browse files Browse the repository at this point in the history
v1.7.5
  • Loading branch information
BhargavBhandari90 authored Feb 6, 2024
2 parents b08c82b + 3fb0ba0 commit 041b687
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 37 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
**Donate link:** https://www.paypal.me/BnB90/50
**Tags:** comments, mention, email, user, bbpress
**Requires at least:** 4.6
**Tested up to:** 6.4.2
**Stable tag:** 1.7.4
**Tested up to:** 6.4.3
**Stable tag:** 1.7.5
**Requires PHP:** 5.6
**License:** GPLv2 or later
**License URI:** https://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -62,6 +62,9 @@ e.g.

## Changelog ##

### 1.7.5 ###
* Minor bug fix.

### 1.7.4 ###
* Minor bug fix.

Expand Down
4 changes: 0 additions & 4 deletions app/admin/class-admin-comment-mention.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ public function __construct() {

// Main class object for future use.
$this->_comment_mention = new CommentMentionMain();

}

/**
Expand All @@ -55,7 +54,6 @@ public function cmt_mntn_plugin_setup_menu() {
'cmt_mntn_admin_settings',
)
);

}

/**
Expand Down Expand Up @@ -193,7 +191,6 @@ public function cmt_mntn_admin_settings() {
</form>
</div>
<?php

}

/**
Expand Down Expand Up @@ -233,7 +230,6 @@ public function cmt_mntn_save_plugin_data() {
add_action( 'admin_notices', array( $this, 'cmt_mntn_admin_notice' ) );

}

}

/**
Expand Down
10 changes: 7 additions & 3 deletions app/main/class-comment-mention.php
Original file line number Diff line number Diff line change
Expand Up @@ -421,13 +421,17 @@ function cmt_mntn_mail_body( $comment_data ) {
* @param array $comment_data Array of comment data.
* @return string Mail subject.
*/
public function cmt_mntn_mail_subject( $comment_data ) {
public function cmt_mntn_mail_subject( $comment_data = array() ) {

// Get post name related to that comment.
$post_name = get_the_title( $comment_data['comment_post_ID'] );
$post_name = ! empty( $comment_data['comment_post_ID'] )
? get_the_title( $comment_data['comment_post_ID'] )
: '';

// Get mentioned user's display name.
$user_name = $comment_data['mentioned_user_data']->display_name;
$user_name = ! empty( $comment_data['mentioned_user_data']->display_name )
? $comment_data['mentioned_user_data']->display_name
: '';

// Get commenter's name.
$commenter_name = isset( $comment_data['comment_author'] )
Expand Down
4 changes: 2 additions & 2 deletions comment-mention.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Author URI: https://bhargavb.com
* Text Domain: comment-mention
* Domain Path: /languages
* Version: 1.7.4
* Version: 1.7.5
*
* @package Comment_Mention
*/
Expand All @@ -21,7 +21,7 @@
/**
* The version of the plugin.
*/
define( 'CMT_MNTN_VERSION', '1.7.4' );
define( 'CMT_MNTN_VERSION', '1.7.5' );
}
if ( ! defined( 'CMT_MNTN_PATH' ) ) {
/**
Expand Down
48 changes: 24 additions & 24 deletions languages/lang.pot
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/comment-mention\n"
"POT-Creation-Date: 2024-01-19 06:35:06+00:00\n"
"POT-Creation-Date: 2024-02-06 09:15:21+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand All @@ -24,79 +24,79 @@ msgstr ""
"X-Textdomain-Support: yes\n"
"X-Generator: grunt-wp-i18n 1.0.3\n"

#: app/admin/class-admin-comment-mention.php:49
#: app/admin/class-admin-comment-mention.php:86
#: app/admin/class-admin-comment-mention.php:48
#: app/admin/class-admin-comment-mention.php:84
msgid "Comment Mention Settings"
msgstr ""

#: app/admin/class-admin-comment-mention.php:50
#: app/admin/class-admin-comment-mention.php:49
msgid "Comment Mention"
msgstr ""

#: app/admin/class-admin-comment-mention.php:93
#: app/admin/class-admin-comment-mention.php:91
msgid "Enabled Roles"
msgstr ""

#: app/admin/class-admin-comment-mention.php:117
#: app/admin/class-admin-comment-mention.php:115
msgid "Choose which user roles should be able to mention in Comments."
msgstr ""

#: app/admin/class-admin-comment-mention.php:141
#: app/admin/class-admin-comment-mention.php:139
msgid "Hide selected user roles while mentioning in Comments."
msgstr ""

#: app/admin/class-admin-comment-mention.php:146
#: app/admin/class-admin-comment-mention.php:144
msgid "Enable Emails"
msgstr ""

#: app/admin/class-admin-comment-mention.php:149
#: app/admin/class-admin-comment-mention.php:147
msgid "Whether to send email to mentioned user or not."
msgstr ""

#: app/admin/class-admin-comment-mention.php:154
#: app/admin/class-admin-comment-mention.php:152
msgid "Email Subject"
msgstr ""

#: app/admin/class-admin-comment-mention.php:157
#: app/admin/class-admin-comment-mention.php:155
msgid "Subject for mentioned user email. Available shortcodes:"
msgstr ""

#: app/admin/class-admin-comment-mention.php:158
#: app/admin/class-admin-comment-mention.php:179
#: app/admin/class-admin-comment-mention.php:156
#: app/admin/class-admin-comment-mention.php:177
msgid "Post title where user is mentioned."
msgstr ""

#: app/admin/class-admin-comment-mention.php:159
#: app/admin/class-admin-comment-mention.php:180
#: app/admin/class-admin-comment-mention.php:157
#: app/admin/class-admin-comment-mention.php:178
msgid "Username who is mentioned."
msgstr ""

#: app/admin/class-admin-comment-mention.php:160
#: app/admin/class-admin-comment-mention.php:181
#: app/admin/class-admin-comment-mention.php:158
#: app/admin/class-admin-comment-mention.php:179
msgid "Commenter name."
msgstr ""

#: app/admin/class-admin-comment-mention.php:166
#: app/admin/class-admin-comment-mention.php:164
msgid "Email Content"
msgstr ""

#: app/admin/class-admin-comment-mention.php:177
#: app/admin/class-admin-comment-mention.php:175
msgid "Mail content for mentioned user email. Available shortcodes:"
msgstr ""

#: app/admin/class-admin-comment-mention.php:178
#: app/admin/class-admin-comment-mention.php:176
msgid "Link where user is mentioned."
msgstr ""

#: app/admin/class-admin-comment-mention.php:182
#: app/admin/class-admin-comment-mention.php:180
msgid "Comment content."
msgstr ""

#: app/admin/class-admin-comment-mention.php:247
#: app/admin/class-admin-comment-mention.php:243
msgid "Settings Saved"
msgstr ""

#: app/includes/common-functions.php:71 app/main/class-comment-mention.php:443
#: app/includes/common-functions.php:71 app/main/class-comment-mention.php:447
msgid "You were mentioned in a comment"
msgstr ""

Expand All @@ -109,7 +109,7 @@ msgid "Enable User Mention in Topics & Replies Content"
msgstr ""

#: app/main/class-comment-mention.php:386
#: app/main/class-comment-mention.php:435
#: app/main/class-comment-mention.php:439
msgid "Someone"
msgstr ""

Expand Down
7 changes: 5 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Contributors: bhargavbhandari90, biliplugins, hackkzy404
Donate link: https://www.paypal.me/BnB90/50
Tags: comments, mention, email, user, bbpress
Requires at least: 4.6
Tested up to: 6.4.2
Stable tag: 1.7.4
Tested up to: 6.4.3
Stable tag: 1.7.5
Requires PHP: 5.6
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -62,6 +62,9 @@ e.g.

== Changelog ==

= 1.7.5 =
* Minor bug fix.

= 1.7.4 =
* Minor bug fix.

Expand Down

0 comments on commit 041b687

Please sign in to comment.