Changeset 3458270
- Timestamp:
- 02/10/2026 05:06:19 PM (7 weeks ago)
- Location:
- mi13-comment-user-edit/trunk
- Files:
-
- 2 edited
-
mi13-comment-user-edit.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mi13-comment-user-edit/trunk/mi13-comment-user-edit.php
r3135882 r3458270 2 2 /* 3 3 Plugin Name: mi13 comment user edit 4 Version: 1.85 Plugin URI: https://wordpress.org/plugins/mi13-comment-user-edit/4 Version: 1.9 5 Plugin URI: https://wordpress.org/plugins/mi13-comment-user-edit/ 6 6 Description: This plugin allows guests to edit their comments on your site. 7 Author: mi13 8 License: GPL2+ 7 Author: mi13 8 License: GPL2+ 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html 10 Text Domain: mi13-comment-user-edit 9 11 */ 10 12 … … 42 44 43 45 function 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 } 51 55 } 52 56 add_action('admin_menu', 'mi13_comment_user_edit_menu'); … … 176 180 if( in_array( $author_email_old, $emails ) == false ) { 177 181 $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 } 178 185 $back = '<p style="text-align: center;"><input type="button" onclick="history.back();" value="'. __( '« Back' ) . '"/></p>'; 179 186 if( $author_email_new <> $author_email_old ) { -
mi13-comment-user-edit/trunk/readme.txt
r3135882 r3458270 3 3 Tags: comment 4 4 Requires at least: 4.7 5 Tested up to: 6. 6.16 Stable tag: 1. 85 Tested up to: 6.9 6 Stable tag: 1.9 7 7 License: GPL v2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 35 35 ** 1.6 - Removed display of the button for admin comments. 36 36 ** 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.