Plugin Directory

Changeset 2774009


Ignore:
Timestamp:
08/23/2022 10:23:45 AM (4 years ago)
Author:
hackkzy404
Message:

Version 1.4.1 Released

Location:
comment-mention/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • comment-mention/trunk/README.md

    r2768744 r2774009  
    66- **Tested up to:** 6.0.1
    77- **Requires PHP:** 5.6
    8 - **Stable tag:** 1.4.0
     8- **Stable tag:** 1.4.1
    99- **License:** GPLv2 or later
    1010- **License URI:** http://www.gnu.org/licenses/gpl-2.0.html
     
    5353## Changelog ##
    5454
     55### 1.4.1 ###
     56* Made some changes related to pro plugin.
     57
    5558### 1.4.0 ###
    5659* Added support for TinyMCE.
  • comment-mention/trunk/app/main/class-comment-mention.php

    r2766739 r2774009  
    3737        // Process comment.
    3838        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 );
    3942
    4043        // Get plugin settings.
     
    320323
    321324    /**
     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    /**
    322345     * Mail body for user mail
    323346     *
  • comment-mention/trunk/comment-mention.php

    r2768744 r2774009  
    77 * Text Domain:     comment-mention
    88 * Domain Path:     /languages
    9  * Version:         1.4.0
     9 * Version:         1.4.1
    1010 *
    1111 * @package         Comment_Mention
     
    2222     * The version of the plugin.
    2323     */
    24     define( 'CMT_MNTN_VERSION', '1.4.0' );
     24    define( 'CMT_MNTN_VERSION', '1.4.1' );
    2525}
    2626if ( ! defined( 'CMT_MNTN_PATH' ) ) {
  • comment-mention/trunk/readme.txt

    r2768744 r2774009  
    55Requires at least: 4.6
    66Tested up to: 6.0.1
    7 Stable tag: 1.4.0
     7Stable tag: 1.4.1
    88Requires PHP: 5.6
    99License: GPLv2 or later
     
    6464== Changelog ==
    6565
     66= 1.4.1 =
     67* Made some changes related to pro plugin.
     68
    6669= 1.4.0 =
    6770* Added support for TinyMCE.
Note: See TracChangeset for help on using the changeset viewer.