Plugin Directory

Changeset 2417374


Ignore:
Timestamp:
11/12/2020 05:45:21 PM (5 years ago)
Author:
dimchtz
Message:

new version 1.0.1

Location:
wysiwyg-editor-for-contact-form-7
Files:
22 added
4 edited

Legend:

Unmodified
Added
Removed
  • wysiwyg-editor-for-contact-form-7/trunk/contact-form-7-wysiwyg.php

    r2416820 r2417374  
    1010 * Plugin URI:        https://github.com/DimChtz/contact-form-7-wysiwyg
    1111 * Description:       Adds WYSIWYG Editor field for Contact Form 7
    12  * Version:           1.0.0
     12 * Version:           1.0.1
    1313 * Author:            Dimitris Chatzis
    1414 * Author URI:        https://github.com/DimChtz
  • wysiwyg-editor-for-contact-form-7/trunk/includes/autoloader.php

    r2416820 r2417374  
    77spl_autoload_register(function($class) {
    88
    9     // Replace separators
    10     $class = str_replace('\\', DIRECTORY_SEPARATOR , $class);
    11 
    12     // Filter the class name remove base namespace
     9    // Filter the class name (remove base namespace)
    1310    $class = implode('\\', array_filter(explode('\\', $class), function($token) {
    1411        return !in_array($token, ['Dimchtz', 'CF7_WYSIWYG']);
    1512    }));
     13
     14    // Replace separators and convert to lcase
     15    $class = strtolower(str_replace('\\', DIRECTORY_SEPARATOR , $class));
    1616
    1717    // Get the filename
  • wysiwyg-editor-for-contact-form-7/trunk/includes/modules/frontend.php

    r2416820 r2417374  
    4343
    4444        if ( $this->instance->is_active ) {
    45             add_action('wpcf7_init', [$this, 'wpcf7_init'], 45);
     45            add_action('wpcf7_init', [$this, 'wpcf7_init']);
    4646        }
    4747
     
    113113    public function wysiwyg_tag_handler($tag) {
    114114
    115         $atts = array();
     115        $tag    = new \WPCF7_FormTag($tag);
     116        $atts   = array();
    116117
    117118        $atts['class']  = $tag->get_class_option( wpcf7_form_controls_class( $tag->type, 'wysiwyg' ) );
  • wysiwyg-editor-for-contact-form-7/trunk/readme.txt

    r2416820 r2417374  
    66Tested up to: 5.5
    77Requires PHP: 5.6
    8 Stable Tag: 1.0.0
     8Stable Tag: 1.0.1
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    31311. Admin
    32322. Frontend form
     33
     34== Changelog ==
     35
     36= 1.0.1 =
     37* Fixed autoloader issue
Note: See TracChangeset for help on using the changeset viewer.