Plugin Directory

Changeset 3458270


Ignore:
Timestamp:
02/10/2026 05:06:19 PM (7 weeks 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

    r3135882 r3458270  
    22/*
    33Plugin Name: mi13 comment user edit
    4 Version:     1.8
    5 Plugin URI:  https://wordpress.org/plugins/mi13-comment-user-edit/
     4Version: 1.9
     5Plugin URI: https://wordpress.org/plugins/mi13-comment-user-edit/
    66Description: This plugin allows guests to edit their comments on your site.
    7 Author:      mi13
    8 License:     GPL2+
     7Author: mi13
     8License: GPL2+
     9License URI: https://www.gnu.org/licenses/gpl-2.0.html
     10Text Domain: mi13-comment-user-edit
    911*/
    1012
     
    4244
    4345function mi13_comment_user_edit_menu() {
    44     $page = add_options_page(
    45         'mi13 comment user edit',
    46         'mi13 comment user edit',
    47         'manage_options',
    48         'mi13_comment_user_edit',
    49         'mi13_comment_user_edit_page'
    50     );
     46    if (is_admin()) {
     47        add_options_page(
     48            'mi13 comment user edit',
     49            'mi13 comment user edit',
     50            'manage_options',
     51            'mi13_comment_user_edit',
     52            'mi13_comment_user_edit_page'
     53        );
     54    }
    5155}
    5256add_action('admin_menu', 'mi13_comment_user_edit_menu');
     
    176180            if( in_array( $author_email_old, $emails ) == false ) {
    177181                $author_email_new = $comment['comment_author_email'];
     182                if( !is_email($author_email_new) ) {
     183                    wp_die( '<p style="text-align: center;">' . __('Invalid email address.', 'mi13-comment-user-edit') . '</p>' );
     184                }
    178185                $back = '<p style="text-align: center;"><input type="button" onclick="history.back();" value="'. __( '&laquo; Back' ) . '"/></p>';
    179186                if( $author_email_new  <> $author_email_old ) {
  • mi13-comment-user-edit/trunk/readme.txt

    r3135882 r3458270  
    33Tags: comment
    44Requires at least: 4.7
    5 Tested up to: 6.6.1
    6 Stable tag: 1.8
     5Tested up to: 6.9
     6Stable tag: 1.9
    77License: GPL v2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3535** 1.6 - Removed display of the button for admin comments.
    3636** 1.7 - Now, if the sender's address does not match the commenter's address, the sender will not be able to calculate the commenter's address.
    37 ** 1.8 - tested to 6.6.1.
     37** 1.8 - tested to 6.6.1.
     38** 1.9 - Update plugin.
Note: See TracChangeset for help on using the changeset viewer.