Changeset 2556184
- Timestamp:
- 06/30/2021 07:02:00 AM (4 years ago)
- Location:
- ark-wysiwyg-comment-editor/trunk
- Files:
-
- 2 edited
-
ark-commenteditor.php (modified) (8 diffs)
-
readme.txt (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ark-wysiwyg-comment-editor/trunk/ark-commenteditor.php
r2555543 r2556184 5 5 Plugin URI: https://obg.kz/plagin-kommentariev-dlya-wordpress.html 6 6 Description: Visual CommentEditor TinyMce Advanced 7 Version: 2.15. 27 Version: 2.15.3 8 8 Author URI: https://obg.kz 9 9 Text Domain: arkcommenteditor … … 43 43 delete_option( 'ark_wce' ); 44 44 } 45 add_action('plugins_loaded', ' init_lang');46 function init_lang() {45 add_action('plugins_loaded', 'ark_wce_init_lang'); 46 function ark_wce_init_lang() { 47 47 load_plugin_textdomain( 'arkcommenteditor', false, dirname( plugin_basename( __FILE__ ) ) . '/lang/' ); 48 48 } … … 113 113 // Вывод страницы опций в субменю 114 114 function ark_wce_options_page() { 115 if(current_user_can('manage_options')){ 115 116 echo '<h2>'. __('Settings visual editor comments','arkcommenteditor').'</h2><div style="clear: both;float:right; padding-right:20px;"><noindex><a rel="nofollow" href="https://obg.kz/podderzhka-proektov-avtora-etogo-bloga 116 117 " target="_blank"><img align="right" src="' . esc_url(plugins_url( '/img/donate.png', __FILE__ )) . '" alt="Пожертвовать" border="0" /></a></noindex></div>'; 118 } 117 119 ?> 118 120 <div class="wrap"> 119 121 <?php // Пошла обработка запроса 120 if (isset($_POST['save']) ) {122 if (isset($_POST['save']) && current_user_can('manage_options')) { 121 123 $ark_wce_option = array( 122 124 'btn_undo' => sanitize_text_field($_POST['btn_undo']), … … 174 176 echo '<div id="setting-error-settings_updated" class="updated settings-error"><p><b>'.__('Settings saved.','arkcommenteditor').'</b></p></div>'; 175 177 176 } else if ( isset($_POST['reset']) ) {178 } else if ( isset($_POST['reset']) && current_user_can('manage_options')) { 177 179 // При сбросе: удаляем записи опций из БД 178 180 delete_option( 'ark_wce' ); … … 183 185 ?> 184 186 <form method="post"> 185 <?php wp_nonce_field('update-options'); 187 <?php 188 wp_nonce_field('update-options'); 186 189 $result = get_option('ark_wce'); 187 190 ?> … … 580 583 $('.comment-reply-link').click(function(e){ 581 584 e.preventDefault(); 582 tinymce.EditorManager.execCommand('mceRemoveEditor', true, 'comment');583 addComment.moveForm.apply( addComment ); 585 tinymce.EditorManager.execCommand('mceRemoveEditor', true, 'comment'); 586 addComment.moveForm.apply( addComment ); 584 587 tinymce.EditorManager.execCommand('mceAddEditor', true, 'comment'); 585 588 }); … … 603 606 } 604 607 605 function set_style_ckeditor() {608 function ark_wce_set_style_ckeditor() { 606 609 global $snippetcss; 607 610 // Регистрация стилей для плагина: … … 614 617 615 618 $snippetcss = $result['codesnippet_css']; 616 add_action( 'wp_enqueue_scripts', ' set_style_ckeditor' );619 add_action( 'wp_enqueue_scripts', 'ark_wce_set_style_ckeditor' ); 617 620 } 618 621 //Remove comment form HTML tags and attributes -
ark-wysiwyg-comment-editor/trunk/readme.txt
r2555543 r2556184 6 6 Requires PHP: 5.6 7 7 Tested up to: 5.7 8 Stable tag: 2.15. 28 Stable tag: 2.15.3 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html … … 14 14 == Description == 15 15 16 Плагин добавляет полностью настраиваемый визуальный редактор по выбору: TinyMCE либо CKEditor для комментариев , при этом используется CDN версия редактора.16 Плагин добавляет полностью настраиваемый визуальный редактор по выбору: TinyMCE либо CKEditor для комментариев. 17 17 18 18 Помимо этого, плагин добавляет в редактор дополнительные наборы смайлов, которые можно включить или отключить в настройках. … … 22 22 Если вам понравился мой плагин, то `пожалуйста` поставьте ему 5 звезд. 23 23 24 The plugin adds a fully customizable WYSIWYG editor based on TinyMCE or CKEditor for comments , using the CDN version of the editor.24 The plugin adds a fully customizable WYSIWYG editor based on TinyMCE or CKEditor for comments. 25 25 26 26 In addition, the plugin adds an additional set of smileys editor that can be turned on or off in the settings. … … 69 69 == Changelog == 70 70 71 = 2.15.3 = 72 * Повышена защита от взлома настроек плагина 73 71 74 = 2.15.2 = 72 75 * Обновление кода CkEditor … … 194 197 195 198 == Upgrade Notice == 199 200 = 2.15.3 = 201 * Повышена защита от взлома настроек плагина 196 202 197 203 = 2.15.2 =
Note: See TracChangeset
for help on using the changeset viewer.