Changeset 2774009
- Timestamp:
- 08/23/2022 10:23:45 AM (4 years ago)
- Location:
- comment-mention/trunk
- Files:
-
- 4 edited
-
README.md (modified) (2 diffs)
-
app/main/class-comment-mention.php (modified) (2 diffs)
-
comment-mention.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
comment-mention/trunk/README.md
r2768744 r2774009 6 6 - **Tested up to:** 6.0.1 7 7 - **Requires PHP:** 5.6 8 - **Stable tag:** 1.4. 08 - **Stable tag:** 1.4.1 9 9 - **License:** GPLv2 or later 10 10 - **License URI:** http://www.gnu.org/licenses/gpl-2.0.html … … 53 53 ## Changelog ## 54 54 55 ### 1.4.1 ### 56 * Made some changes related to pro plugin. 57 55 58 ### 1.4.0 ### 56 59 * Added support for TinyMCE. -
comment-mention/trunk/app/main/class-comment-mention.php
r2766739 r2774009 37 37 // Process comment. 38 38 add_action( 'comment_post', array( $this, 'cmt_mntn_preprocess_comment' ), 10, 3 ); 39 40 // Check if user mentioned or not. 41 add_action( 'comment_post', array( $this, 'cmt_mntn_check_mention' ), 10, 3 ); 39 42 40 43 // Get plugin settings. … … 320 323 321 324 /** 325 * Check If user is mentioned. 326 * 327 * @param int $comment_ID Current comment id. 328 * @param string $comment_status Comment status. 329 * @param obj $comment_data Comment data. 330 * @return void 331 */ 332 public function cmt_mntn_check_mention( $comment_ID, $comment_status, $comment_data ) { 333 // Get content. 334 $content = $comment_data['comment_content']; 335 336 // Get usernames from comment content. 337 $usernames = $this->cmt_mntn_find_mentions( $content ); 338 339 if ( ! empty( $usernames ) ) { 340 do_action( 'cmt_mntn_user_mentioned' ); 341 } 342 } 343 344 /** 322 345 * Mail body for user mail 323 346 * -
comment-mention/trunk/comment-mention.php
r2768744 r2774009 7 7 * Text Domain: comment-mention 8 8 * Domain Path: /languages 9 * Version: 1.4. 09 * Version: 1.4.1 10 10 * 11 11 * @package Comment_Mention … … 22 22 * The version of the plugin. 23 23 */ 24 define( 'CMT_MNTN_VERSION', '1.4. 0' );24 define( 'CMT_MNTN_VERSION', '1.4.1' ); 25 25 } 26 26 if ( ! defined( 'CMT_MNTN_PATH' ) ) { -
comment-mention/trunk/readme.txt
r2768744 r2774009 5 5 Requires at least: 4.6 6 6 Tested up to: 6.0.1 7 Stable tag: 1.4. 07 Stable tag: 1.4.1 8 8 Requires PHP: 5.6 9 9 License: GPLv2 or later … … 64 64 == Changelog == 65 65 66 = 1.4.1 = 67 * Made some changes related to pro plugin. 68 66 69 = 1.4.0 = 67 70 * Added support for TinyMCE.
Note: See TracChangeset
for help on using the changeset viewer.