Customify – A Theme Customizer Booster - Version 1.9.1

Version Description

Download this release

Release Info

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

Code changes from version 1.9.0 to 1.9.1

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: 1.9.0
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__, '1.9.0' );
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: 1.9.1
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__, '1.9.1' );
65
 
66
  return $instance;
67
  }
js/customizer.js CHANGED
@@ -7,6 +7,12 @@
7
  wp.customize.bind( 'ready', function() {
8
  var timeout = null;
9
 
 
 
 
 
 
 
10
  // add ace editors
11
  $( '.customify_ace_editor' ).each( function( key, el ) {
12
  var id = $( this ).attr( 'id' ),
7
  wp.customize.bind( 'ready', function() {
8
  var timeout = null;
9
 
10
+ // Create a stack of callbacks bound to parent settings to be able to unbind them
11
+ // when altering the connected_fields attribute.
12
+ if ( typeof window.connectedFieldsCallbacks === "undefined" ) {
13
+ window.connectedFieldsCallbacks = {};
14
+ }
15
+
16
  // add ace editors
17
  $( '.customify_ace_editor' ).each( function( key, el ) {
18
  var id = $( this ).attr( 'id' ),
js/customizer/color-palettes.js CHANGED
@@ -444,32 +444,7 @@ let ColorPalettes = ( function( $, exports, wp ) {
444
  toggleAlteredClassOnMasterControls();
445
  toggleHiddenClassOnMasterControls();
446
  updateActiveVariationControlColor();
447
-
448
- const swapConnectedFields = ( settings ) => {
449
- let variation = getCurrentVariation();
450
- let swapMap = window.colorPalettesVariations[variation];
451
- let newSettings = JSON.parse(JSON.stringify(settings));
452
- let oldSettings = JSON.parse(JSON.stringify(settings));
453
-
454
- _.each( masterSettingIds, function( masterSettingId ) {
455
- let connectedFields = wp.customize.settings.settings[masterSettingId]['connected_fields'];
456
-
457
- if ( ! _.isUndefined( connectedFields ) && ! _.isEmpty( connectedFields ) ) {
458
- optionsToShow.push( masterSettingId );
459
- }
460
- } );
461
-
462
- optionsSelector = '.' + optionsToShow.join(', .');
463
-
464
- $( '.c-color-palette .color' ).addClass( 'hidden' ).filter( optionsSelector ).removeClass( 'hidden' )
465
- $( '.customify_preset.color_palette .palette__item' ).addClass( 'hidden' ).filter( optionsSelector ).removeClass( 'hidden' );
466
- }, 30 );
467
-
468
- const refreshCurrentPaletteControl = () => {
469
- toggleAlteredClassOnMasterControls();
470
- toggleHiddenClassOnMasterControls();
471
- updateActiveVariationControlColor();
472
- }
473
 
474
  const swapConnectedFields = ( settings ) => {
475
  let variation = getCurrentVariation();
444
  toggleAlteredClassOnMasterControls();
445
  toggleHiddenClassOnMasterControls();
446
  updateActiveVariationControlColor();
447
+ };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
448
 
449
  const swapConnectedFields = ( settings ) => {
450
  let variation = getCurrentVariation();
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: pixelgrade, euthelup, babbardel, vlad.olaru, cristianfrumusanu, ra
3
  Tags: customizer, css, editor, live, preview, customizer
4
  Requires at least: 4.7.0
5
  Tested up to: 4.9.8
6
- Stable tag: 1.8.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
3
  Tags: customizer, css, editor, live, preview, customizer
4
  Requires at least: 4.7.0
5
  Tested up to: 4.9.8
6
+ Stable tag: 1.9.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9