Changeset 2986034
- Timestamp:
- 10/30/2023 10:46:09 AM (2 years ago)
- Location:
- mi13-comment-user-edit/trunk
- Files:
-
- 2 edited
-
mi13-comment-user-edit.php (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mi13-comment-user-edit/trunk/mi13-comment-user-edit.php
r2857468 r2986034 2 2 /* 3 3 Plugin Name: mi13 comment user edit 4 Version: 1. 24 Version: 1.3 5 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 7 Author: mi13 8 8 License: GPL2+ 9 Copyright: 2022 Mihail Nebov (email: mihail_teo@mail.ru)9 Copyright: 2022-2023 Mihail Nebov (email: mihail_teo@mail.ru) 10 10 */ 11 11 … … 64 64 $settings['add_to_comment'] = isset($settings['add_to_comment']) ? intval($settings['add_to_comment']) : 0; 65 65 $settings['button'] = force_balance_tags($settings['button']); 66 67 66 if( empty($settings['subject']) ) $settings['subject'] = $default_settings['subject']; 68 67 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']; 70 69 71 70 return $settings; … … 107 106 </tr> 108 107 <tr> 109 <th style="padding-left:8px" scope="row">Code Snippet :</th>110 <td><p class="description"> <strong><?php if( function_exists( 'mi13_comment_user_edit_button' ) ) echo mi13_comment_user_edit_button( get_comment_ID() ); ?></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><?php if( function_exists( 'mi13_comment_user_edit_button' ) ) echo mi13_comment_user_edit_button( get_comment_ID() ); ?></strong><br>/The second parameter is optional (your comment_content); Default empty./<br><strong><?php add_filter('mi13_comment_user_edit_button_filter', 'your_filter'); ?></strong><br>/Parameter $button/</p></td> 111 110 </tr> 112 111 <tr> … … 128 127 <?php 129 128 } 129 130 130 add_action( 'comment_form_logged_in_after', 'mi13_comment_user_edit_field' ); 131 131 add_action( 'comment_form_after_fields', 'mi13_comment_user_edit_field' ); … … 146 146 $button = str_replace( 'ON_CLICK_FUNCTION', $on_click_function, $button ); 147 147 $button = str_replace( 'GET_EDIT_TEXT', __('Edit'), $button ); 148 $button = apply_filters( 'mi13_comment_user_edit_button_filter', $button); 148 149 } 149 150 } -
mi13-comment-user-edit/trunk/readme.txt
r2857468 r2986034 3 3 Tags: comment 4 4 Requires at least: 4.7 5 Tested up to: 6. 1.16 Stable tag: 1. 25 Tested up to: 6.3.2 6 Stable tag: 1.3 7 7 License URI: http://www.gnu.org/licenses/gpl-2.0.html 8 8 License: GPL v2 or later … … 30 30 ** 1.1 - Added a second parameter to the button for markdown parser. 31 31 ** 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.