Customify – A Theme Customizer Booster - Version 2.3.2

Version Description

  • Fixed the fact that Customizer style changes were not reflected in the live preview. A problem introduced in the previous update.
Download this release

Release Info

Developer vlad.olaru
Plugin Icon Customify – A Theme Customizer Booster
Version 2.3.2
Comparing to
See all releases

Code changes from version 2.3.1 to 2.3.2

class-pixcustomify.php CHANGED
@@ -470,7 +470,7 @@ class PixCustomifyPlugin {
470
  /** Register Customizer scripts loaded only on previewer page */
471
  function customizer_live_preview_register_scripts() {
472
  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 );
474
  wp_register_script( $this->plugin_slug . '-previewer-scripts', plugins_url( 'js/customizer_preview.js', $this->file ), array(
475
  'jquery',
476
  'customize-preview',
@@ -618,8 +618,9 @@ class PixCustomifyPlugin {
618
  foreach ( $options['css'] as $key => $properties_set ) {
619
  // We need to use a class because we may have multiple <style>s with the same "ID" for example
620
  // 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">';
623
 
624
  if ( isset( $properties_set['media'] ) && ! empty( $properties_set['media'] ) ) {
625
  $inline_style .= '@media '. $properties_set['media'] . ' {';
470
  /** Register Customizer scripts loaded only on previewer page */
471
  function customizer_live_preview_register_scripts() {
472
  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( 'jquery' ), $this->_version, true );
474
  wp_register_script( $this->plugin_slug . '-previewer-scripts', plugins_url( 'js/customizer_preview.js', $this->file ), array(
475
  'jquery',
476
  'customize-preview',
618
  foreach ( $options['css'] as $key => $properties_set ) {
619
  // We need to use a class because we may have multiple <style>s with the same "ID" for example
620
  // when targeting the same property but with different selectors.
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">';
624
 
625
  if ( isset( $properties_set['media'] ) && ! empty( $properties_set['media'] ) ) {
626
  $inline_style .= '@media '. $properties_set['media'] . ' {';
customify.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Customify
4
  Plugin URI: https://wordpress.org/plugins/customify/
5
  Description: A Theme Customizer Booster
6
- Version: 2.3.1
7
  Author: Pixelgrade
8
  Author URI: https://pixelgrade.com
9
  Author Email: contact@pixelgrade.com
@@ -61,7 +61,7 @@ function PixCustomifyPlugin() {
61
  */
62
  require_once plugin_dir_path( __FILE__ ) . 'class-pixcustomify.php';
63
 
64
- $instance = PixCustomifyPlugin::instance( __FILE__, '2.3.1' );
65
 
66
  return $instance;
67
  }
3
  Plugin Name: Customify
4
  Plugin URI: https://wordpress.org/plugins/customify/
5
  Description: A Theme Customizer Booster
6
+ Version: 2.3.2
7
  Author: Pixelgrade
8
  Author URI: https://pixelgrade.com
9
  Author Email: contact@pixelgrade.com
61
  */
62
  require_once plugin_dir_path( __FILE__ ) . 'class-pixcustomify.php';
63
 
64
+ $instance = PixCustomifyPlugin::instance( __FILE__, '2.3.2' );
65
 
66
  return $instance;
67
  }
js/customizer_preview.js CHANGED
@@ -54,9 +54,9 @@
54
 
55
  // Replace all dashes with underscores thus making the CSS property safe to us in a HTML ID.
56
  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)
60
  })
61
 
62
  })
54
 
55
  // Replace all dashes with underscores thus making the CSS property safe to us in a HTML ID.
56
  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);
60
  })
61
 
62
  })
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: pixelgrade, euthelup, babbardel, vlad.olaru, raduconstantin, razva
3
  Tags: customizer, css, editor, live, preview, customizer
4
  Requires at least: 4.7.0
5
  Tested up to: 5.0.0
6
- Stable tag: 2.3.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -45,6 +45,9 @@ With [Customify](https://github.com/pixelgrade/customify), developers can easily
45
 
46
  == Changelog ==
47
 
 
 
 
48
  = 2.3.1 =
49
  * Fixed some warnings that appeared in certain situations.
50
 
3
  Tags: customizer, css, editor, live, preview, customizer
4
  Requires at least: 4.7.0
5
  Tested up to: 5.0.0
6
+ Stable tag: 2.3.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
45
 
46
  == Changelog ==
47
 
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
+
51
  = 2.3.1 =
52
  * Fixed some warnings that appeared in certain situations.
53