Plugin Directory

Changeset 2556184


Ignore:
Timestamp:
06/30/2021 07:02:00 AM (4 years ago)
Author:
AlexKar
Message:

TAG 2.15.3

Location:
ark-wysiwyg-comment-editor/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ark-wysiwyg-comment-editor/trunk/ark-commenteditor.php

    r2555543 r2556184  
    55Plugin URI: https://obg.kz/plagin-kommentariev-dlya-wordpress.html
    66Description: Visual CommentEditor TinyMce Advanced
    7 Version: 2.15.2
     7Version: 2.15.3
    88Author URI: https://obg.kz
    99Text Domain: arkcommenteditor
     
    4343delete_option( 'ark_wce' );
    4444}
    45 add_action('plugins_loaded', 'init_lang');
    46 function init_lang() {
     45add_action('plugins_loaded', 'ark_wce_init_lang');
     46function ark_wce_init_lang() {
    4747     load_plugin_textdomain( 'arkcommenteditor', false, dirname( plugin_basename( __FILE__ ) ) . '/lang/' );
    4848}
     
    113113// Вывод страницы опций в субменю
    114114function ark_wce_options_page() {
     115if(current_user_can('manage_options')){
    115116    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
    116117" target="_blank"><img align="right" src="' . esc_url(plugins_url( '/img/donate.png', __FILE__ )) . '" alt="Пожертвовать" border="0" /></a></noindex></div>';
     118}
    117119?> 
    118120<div class="wrap">
    119121<?php // Пошла обработка запроса
    120 if (isset($_POST['save'])) {
     122if (isset($_POST['save']) && current_user_can('manage_options')) {
    121123$ark_wce_option = array(
    122124'btn_undo' => sanitize_text_field($_POST['btn_undo']),
     
    174176echo '<div id="setting-error-settings_updated" class="updated settings-error"><p><b>'.__('Settings saved.','arkcommenteditor').'</b></p></div>';
    175177   
    176 } else if ( isset($_POST['reset']) ) {   
     178} else if ( isset($_POST['reset']) && current_user_can('manage_options')) {   
    177179      // При сбросе: удаляем записи опций из БД 
    178180         delete_option( 'ark_wce' );
     
    183185?>
    184186<form method="post">
    185 <?php wp_nonce_field('update-options');
     187<?php
     188wp_nonce_field('update-options');
    186189$result = get_option('ark_wce');
    187190?>
     
    580583                $('.comment-reply-link').click(function(e){
    581584                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 ); 
    584587                tinymce.EditorManager.execCommand('mceAddEditor', true, 'comment');
    585588                });
     
    603606}
    604607
    605 function set_style_ckeditor() {
     608function ark_wce_set_style_ckeditor() {
    606609    global $snippetcss;
    607610    // Регистрация стилей для плагина:
     
    614617   
    615618$snippetcss = $result['codesnippet_css'];
    616 add_action( 'wp_enqueue_scripts', 'set_style_ckeditor' );
     619add_action( 'wp_enqueue_scripts', 'ark_wce_set_style_ckeditor' );
    617620}
    618621//Remove comment form HTML tags and attributes
  • ark-wysiwyg-comment-editor/trunk/readme.txt

    r2555543 r2556184  
    66Requires PHP:      5.6
    77Tested up to: 5.7
    8 Stable tag: 2.15.2
     8Stable tag: 2.15.3
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
     
    1414== Description ==
    1515
    16 Плагин добавляет полностью настраиваемый визуальный редактор по выбору: TinyMCE либо CKEditor для комментариев, при этом используется CDN версия редактора.
     16Плагин добавляет полностью настраиваемый визуальный редактор по выбору: TinyMCE либо CKEditor для комментариев.
    1717
    1818Помимо этого, плагин добавляет в редактор дополнительные наборы смайлов, которые можно включить или отключить в настройках.
     
    2222Если вам понравился мой плагин, то `пожалуйста` поставьте ему 5 звезд.
    2323
    24 The plugin adds a fully customizable WYSIWYG editor based on TinyMCE or CKEditor for comments, using the CDN version of the editor.
     24The plugin adds a fully customizable WYSIWYG editor based on TinyMCE or CKEditor for comments.
    2525
    2626In addition, the plugin adds an additional set of smileys editor that can be turned on or off in the settings.
     
    6969== Changelog ==
    7070
     71= 2.15.3 =
     72* Повышена защита от взлома настроек плагина
     73
    7174= 2.15.2 =
    7275* Обновление кода CkEditor
     
    194197
    195198== Upgrade Notice ==
     199
     200= 2.15.3 =
     201* Повышена защита от взлома настроек плагина
    196202
    197203= 2.15.2 =
Note: See TracChangeset for help on using the changeset viewer.