Plugin Directory

Changeset 2986034


Ignore:
Timestamp:
10/30/2023 10:46:09 AM (2 years ago)
Author:
mi13
Message:

Update plugin

Location:
mi13-comment-user-edit/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • mi13-comment-user-edit/trunk/mi13-comment-user-edit.php

    r2857468 r2986034  
    22/*
    33Plugin Name: mi13 comment user edit
    4 Version: 1.2
     4Version: 1.3
    55Plugin URI: https://wordpress.org/plugins/mi13-comment-user-edit/
    66Description: This plugin allows guests to edit their comments on your site.
    77Author: mi13
    88License: GPL2+
    9 Copyright: 2022 Mihail Nebov (email: mihail_teo@mail.ru)
     9Copyright: 2022-2023 Mihail Nebov (email: mihail_teo@mail.ru)
    1010*/
    1111
     
    6464    $settings['add_to_comment'] = isset($settings['add_to_comment']) ? intval($settings['add_to_comment']) : 0;
    6565    $settings['button'] = force_balance_tags($settings['button']);
    66    
    6766    if( empty($settings['subject']) ) $settings['subject'] = $default_settings['subject'];
    6867    if( empty($settings['message']) ) $settings['message'] = sanitize_textarea_field($default_settings['message']);
    69     if( empty($settings['button']) ) $settings['button'] = force_balance_tags($default_settings['button']);
     68    if( empty($settings['button']) ) $settings['button'] = $default_settings['button'];
    7069   
    7170    return $settings;
     
    107106                </tr>
    108107                <tr>
    109                     <th style="padding-left:8px" scope="row">Code Snippet:</th>
    110                     <td><p  class="description"> <strong>&lt;?php if( function_exists( 'mi13_comment_user_edit_button' ) ) echo mi13_comment_user_edit_button( get_comment_ID() ); ?&gt;</strong><br>/The second parameter is optional (your comment_content); Default empty./</p></td>
     108                    <th style="padding-left:8px" scope="row">Code Snippets:</th>
     109                    <td><p  class="description"><strong>&lt;?php if( function_exists( 'mi13_comment_user_edit_button' ) ) echo mi13_comment_user_edit_button( get_comment_ID() ); ?&gt;</strong><br>/The second parameter is optional (your comment_content); Default empty./<br><strong>&lt;?php add_filter('mi13_comment_user_edit_button_filter', 'your_filter'); ?&gt;</strong><br>/Parameter $button/</p></td>
    111110                </tr>
    112111                <tr>
     
    128127    <?php
    129128}
     129
    130130add_action( 'comment_form_logged_in_after', 'mi13_comment_user_edit_field' );
    131131add_action( 'comment_form_after_fields', 'mi13_comment_user_edit_field' );
     
    146146            $button = str_replace( 'ON_CLICK_FUNCTION', $on_click_function, $button );
    147147            $button = str_replace( 'GET_EDIT_TEXT', __('Edit'), $button );
     148            $button = apply_filters( 'mi13_comment_user_edit_button_filter', $button);
    148149        }
    149150    }
  • mi13-comment-user-edit/trunk/readme.txt

    r2857468 r2986034  
    33Tags: comment
    44Requires at least: 4.7
    5 Tested up to: 6.1.1
    6 Stable tag: 1.2
     5Tested up to: 6.3.2
     6Stable tag: 1.3
    77License URI: http://www.gnu.org/licenses/gpl-2.0.html
    88License: GPL v2 or later
     
    3030** 1.1 - Added a second parameter to the button for markdown parser.
    3131** 1.2 - fix bug SITE_URL to message.
     32** 1.3 - Add filter to button for title arg translate etc.
Note: See TracChangeset for help on using the changeset viewer.