Plugin Directory

Changeset 2313525


Ignore:
Timestamp:
05/28/2020 07:00:47 AM (6 years ago)
Author:
itservicejung
Message:

Bugfix saving css3 code now correctly

Location:
simple-cart-reminder
Files:
25 added
4 edited

Legend:

Unmodified
Added
Removed
  • simple-cart-reminder/trunk/changelog.txt

    r2312317 r2313525  
     1/***1.0.4 - 2020.05.28**/
     2- Bugfix saving css3 code now correctly
    13/***1.0.3 - 2020.05.26**/
    24- Bugfix email heading format in main and testmail section
  • simple-cart-reminder/trunk/includes/helpers/Meta_Post_Editor.php

    r2312317 r2313525  
    2424        add_filter( 'default_content', [ __CLASS__, 'get_default_content' ] );
    2525
     26        add_filter( 'wp_editor_settings', function($settings) {
     27          $settings['media_buttons']=FALSE;
     28            $settings['wpautop']=FALSE;
     29          return $settings;
     30        });
    2631
    2732        /* Manager Column*/
     
    4045        add_action( 'my ads',  [ __CLASS__,'form_ads'] );
    4146        add_action( 'my wp_remote_get',  [ __CLASS__,'wp_remote_get'] );
    42 
    4347
    4448        self::$initd = true;
     
    233237
    234238    public static function get_default_content( $content ) {
     239
    235240        if ( ! isset( $_GET['post_type'] ) || $_GET['post_type'] != 'simple_cart_reminder' ) {
    236241            return $content;
     
    238243        $content = '[SITE_LOGO]<br>[CART_URL]<br>[CART_PRODUCTS]';
    239244
    240         return $content;
     245            return $content;
    241246    }
    242247
     
    293298            $content = "<hr><br>[PRODUCT_NAME] <br> [PRODUCT_IMAGE] <br> [PRODUCT_URL] <br> [PRODUCT_PRICE]";
    294299        }
     300
     301
    295302        wp_editor(
    296303            $content,
    297304            'body_content',
    298305            array(
    299                 'media_buttons' =>  true,
     306                'media_buttons' =>  false,
     307                        'wpautop' => false
     308                        // 'tinymce' => false
    300309            )
    301310        );
     
    634643        $cart_email_reminder_meta['wce_btn_link']                      = esc_url_raw( $_POST['wce_btn_link'] );
    635644        $cart_email_reminder_meta['wce_expiry_unit']                   = sanitize_text_field( $_POST['wce_expiry_unit'] );
    636         $cart_email_reminder_meta['wce_btn_background']                = sanitize_hex_color( $_POST['wce_btn_background'] );
    637         $cart_email_reminder_meta['wce_cart_background']             = sanitize_hex_color( $_POST['wce_cart_background'] );
    638         $cart_email_reminder_meta['wce_text_color']                    = sanitize_hex_color( $_POST['wce_text_color'] );
    639645
    640646        //Mail scheduler
  • simple-cart-reminder/trunk/readme.txt

    r2312317 r2313525  
    44Requires at least: 4.4
    55Tested up to: 5.2
    6 Stable tag: 1.0.3
     6Stable tag: 1.0.4
    77License: GPLv2 or later
    88
  • simple-cart-reminder/trunk/simple-cart-reminder.php

    r2312321 r2313525  
    44 * Plugin URI: https://wordpress.org/plugins/simple-cart-reminder/
    55 * Description: Create templates and schedule your cart reminder emails
    6  * Version: 1.0.3
     6 * Version: 1.0.4
    77 * Author: ITServiceJung
    88 * Author URI: http://itservicejung.de
Note: See TracChangeset for help on using the changeset viewer.