Plugin Directory

Changeset 1990988


Ignore:
Timestamp:
12/10/2018 04:35:56 PM (7 years ago)
Author:
vlad.olaru
Message:

Fixed Customizer live preview not updating

Location:
customify/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • customify/trunk/class-pixcustomify.php

    r1985364 r1990988  
    471471    function customizer_live_preview_register_scripts() {
    472472        wp_register_script( $this->plugin_slug . 'CSSOM', plugins_url( 'js/CSSOM.js', $this->file ), array( 'jquery' ), $this->_version, true );
    473         wp_register_script( $this->plugin_slug . 'cssUpdate', plugins_url( 'js/jquery.cssUpdate.js', $this->file ), array(), $this->_version, true );
     473        wp_register_script( $this->plugin_slug . 'cssUpdate', plugins_url( 'js/jquery.cssUpdate.js', $this->file ), array( 'jquery' ), $this->_version, true );
    474474        wp_register_script( $this->plugin_slug . '-previewer-scripts', plugins_url( 'js/customizer_preview.js', $this->file ), array(
    475475            'jquery',
     
    619619                    // We need to use a class because we may have multiple <style>s with the same "ID" for example
    620620                    // when targeting the same property but with different selectors.
    621 
    622                     $inline_style = '<style class="dynamic_setting_ ' . sanitize_html_class( $option_id ) . '_property_' . str_replace( '-', '_', $properties_set['property'] ) . '_' . $key .'" type="text/css">';
     621                    $unique_class = 'dynamic_setting_' .  $option_id . '_property_' . str_replace( '-', '_', $properties_set['property'] ) . '_' . $key;
     622
     623                    $inline_style = '<style class="' . sanitize_html_class( $unique_class ) . '" type="text/css">';
    623624
    624625                    if ( isset( $properties_set['media'] ) && ! empty( $properties_set['media'] ) ) {
  • customify/trunk/customify.php

    r1987686 r1990988  
    44Plugin URI:  https://wordpress.org/plugins/customify/
    55Description: A Theme Customizer Booster
    6 Version: 2.3.1
     6Version: 2.3.2
    77Author: Pixelgrade
    88Author URI: https://pixelgrade.com
     
    6262    require_once plugin_dir_path( __FILE__ ) . 'class-pixcustomify.php';
    6363
    64     $instance = PixCustomifyPlugin::instance( __FILE__, '2.3.1' );
     64    $instance = PixCustomifyPlugin::instance( __FILE__, '2.3.2' );
    6565
    6666    return $instance;
  • customify/trunk/js/customizer_preview.js

    r1985364 r1990988  
    5555              // Replace all dashes with underscores thus making the CSS property safe to us in a HTML ID.
    5656              let regex_for_multiple_replace = new RegExp('-', 'g'),
    57                 cssStyleSelector = '.dynamic_setting_' + el.html_safe_option_id + '_property_' + property_config.property.replace(regex_for_multiple_replace, '_') + '_' + counter
    58 
    59               $(cssStyleSelector).cssUpdate(css_update_args)
     57                cssStyleSelector = '.dynamic_setting_' + el.html_safe_option_id + '_property_' + property_config.property.replace(regex_for_multiple_replace, '_') + '_' + counter;
     58
     59              $(cssStyleSelector).cssUpdate(css_update_args);
    6060            })
    6161
  • customify/trunk/readme.txt

    r1987692 r1990988  
    4646== Changelog ==
    4747
     48= 2.3.2 =
     49* Fixed the fact that Customizer style changes were not reflected in the live preview. A problem introduced in the previous update.
     50
    4851= 2.3.1 =
    4952* Fixed some warnings that appeared in certain situations.
Note: See TracChangeset for help on using the changeset viewer.