Version Description
- Fix: Regular expression introduced in version 1.6.2 parses selectors incorrectly.
Download this release
Release Info
Developer | lilaeamedia |
Plugin | Child Theme Configurator |
Version | 1.6.2.1 |
Comparing to | |
See all releases |
Code changes from version 1.6.2 to 1.6.2.1
- child-theme-configurator.php +2 -2
- includes/class-ctc-css.php +2 -3
- includes/class-ctc-ui.php +1 -1
- includes/class-ctc.php +2 -2
- js/chld-thm-cfg.js +1 -1
- readme.txt +11 -8
child-theme-configurator.php
CHANGED
@@ -6,7 +6,7 @@ if ( !defined('ABSPATH')) exit;
|
|
6 |
Plugin Name: Child Theme Configurator
|
7 |
Plugin URI: http://www.lilaeamedia.com/plugins/child-theme-configurator/
|
8 |
Description: Create a Child Theme from any installed Theme. Each CSS selector, rule and value can then be searched, previewed and modified.
|
9 |
-
Version: 1.6.2
|
10 |
Author: Lilaea Media
|
11 |
Author URI: http://www.lilaeamedia.com/
|
12 |
Text Domain: chld_thm_cfg
|
@@ -17,7 +17,7 @@ if ( !defined('ABSPATH')) exit;
|
|
17 |
|
18 |
defined( 'LF' ) or define( 'LF', "\n");
|
19 |
defined( 'CHLD_THM_CFG_OPTIONS' ) or define( 'CHLD_THM_CFG_OPTIONS', 'chld_thm_cfg_options' );
|
20 |
-
defined( 'CHLD_THM_CFG_VERSION' ) or define( 'CHLD_THM_CFG_VERSION', '1.6.2' );
|
21 |
defined( 'CHLD_THM_CFG_MIN_WP_VERSION' ) or define( 'CHLD_THM_CFG_MIN_WP_VERSION', '3.7' );
|
22 |
defined( 'CHLD_THM_CFG_MAX_SELECTORS' ) or define( 'CHLD_THM_CFG_MAX_SELECTORS', '50000' );
|
23 |
defined( 'CHLD_THM_CFG_MAX_RECURSE_LOOPS' ) or define( 'CHLD_THM_CFG_MAX_RECURSE_LOOPS', '1000' );
|
6 |
Plugin Name: Child Theme Configurator
|
7 |
Plugin URI: http://www.lilaeamedia.com/plugins/child-theme-configurator/
|
8 |
Description: Create a Child Theme from any installed Theme. Each CSS selector, rule and value can then be searched, previewed and modified.
|
9 |
+
Version: 1.6.2.1
|
10 |
Author: Lilaea Media
|
11 |
Author URI: http://www.lilaeamedia.com/
|
12 |
Text Domain: chld_thm_cfg
|
17 |
|
18 |
defined( 'LF' ) or define( 'LF', "\n");
|
19 |
defined( 'CHLD_THM_CFG_OPTIONS' ) or define( 'CHLD_THM_CFG_OPTIONS', 'chld_thm_cfg_options' );
|
20 |
+
defined( 'CHLD_THM_CFG_VERSION' ) or define( 'CHLD_THM_CFG_VERSION', '1.6.2.1' );
|
21 |
defined( 'CHLD_THM_CFG_MIN_WP_VERSION' ) or define( 'CHLD_THM_CFG_MIN_WP_VERSION', '3.7' );
|
22 |
defined( 'CHLD_THM_CFG_MAX_SELECTORS' ) or define( 'CHLD_THM_CFG_MAX_SELECTORS', '50000' );
|
23 |
defined( 'CHLD_THM_CFG_MAX_RECURSE_LOOPS' ) or define( 'CHLD_THM_CFG_MAX_RECURSE_LOOPS', '1000' );
|
includes/class-ctc-css.php
CHANGED
@@ -6,7 +6,7 @@ if ( !defined('ABSPATH')) exit;
|
|
6 |
Class: ChildThemeConfiguratorCSS
|
7 |
Plugin URI: http://www.lilaeamedia.com/plugins/child-theme-configurator/
|
8 |
Description: Handles all CSS output, parsing, normalization
|
9 |
-
Version: 1.6.2
|
10 |
Author: Lilaea Media
|
11 |
Author URI: http://www.lilaeamedia.com/
|
12 |
Text Domain: chld_thm_cfg
|
@@ -559,8 +559,7 @@ class ChildThemeConfiguratorCSS {
|
|
559 |
foreach ($ruleset as $query => $segment):
|
560 |
// make sure there is semicolon before closing brace
|
561 |
$segment = preg_replace('#(\})#', ";$1", $segment);
|
562 |
-
$regex = '
|
563 |
-
//$regex = '#\s([\.\#\:\w][\w\-\s\(\)\[\]\'\*\.\#\+:,"=>]+?)\s*\{(.*?)\}#s'; //
|
564 |
preg_match_all($regex, $segment, $matches);
|
565 |
foreach($matches[1] as $sel):
|
566 |
$stuff = array_shift($matches[2]);
|
6 |
Class: ChildThemeConfiguratorCSS
|
7 |
Plugin URI: http://www.lilaeamedia.com/plugins/child-theme-configurator/
|
8 |
Description: Handles all CSS output, parsing, normalization
|
9 |
+
Version: 1.6.2.1
|
10 |
Author: Lilaea Media
|
11 |
Author URI: http://www.lilaeamedia.com/
|
12 |
Text Domain: chld_thm_cfg
|
559 |
foreach ($ruleset as $query => $segment):
|
560 |
// make sure there is semicolon before closing brace
|
561 |
$segment = preg_replace('#(\})#', ";$1", $segment);
|
562 |
+
$regex = '#\s([\[\.\#\:\w][\w\-\s\(\)\[\]\'\^\*\.\#\+:,"=>]+?)\s*\{(.*?)\}#s'; //
|
|
|
563 |
preg_match_all($regex, $segment, $matches);
|
564 |
foreach($matches[1] as $sel):
|
565 |
$stuff = array_shift($matches[2]);
|
includes/class-ctc-ui.php
CHANGED
@@ -5,7 +5,7 @@ if ( !defined('ABSPATH')) exit;
|
|
5 |
Class: Child_Theme_Configurator_UI
|
6 |
Plugin URI: http://www.lilaeamedia.com/plugins/child-theme-configurator/
|
7 |
Description: Handles the plugin User Interface
|
8 |
-
Version: 1.6.2
|
9 |
Author: Lilaea Media
|
10 |
Author URI: http://www.lilaeamedia.com/
|
11 |
Text Domain: chld_thm_cfg
|
5 |
Class: Child_Theme_Configurator_UI
|
6 |
Plugin URI: http://www.lilaeamedia.com/plugins/child-theme-configurator/
|
7 |
Description: Handles the plugin User Interface
|
8 |
+
Version: 1.6.2.1
|
9 |
Author: Lilaea Media
|
10 |
Author URI: http://www.lilaeamedia.com/
|
11 |
Text Domain: chld_thm_cfg
|
includes/class-ctc.php
CHANGED
@@ -6,7 +6,7 @@ if ( !defined('ABSPATH')) exit;
|
|
6 |
Class: Child_Theme_Configurator
|
7 |
Plugin URI: http://www.lilaeamedia.com/plugins/child-theme-configurator/
|
8 |
Description: Main Controller Class
|
9 |
-
Version: 1.6.2
|
10 |
Author: Lilaea Media
|
11 |
Author URI: http://www.lilaeamedia.com/
|
12 |
Text Domain: chld_thm_cfg
|
@@ -88,7 +88,7 @@ class ChildThemeConfiguratorAdmin {
|
|
88 |
$this->ui->render();
|
89 |
}
|
90 |
function enqueue_scripts() {
|
91 |
-
wp_enqueue_style('chld-thm-cfg-admin', $this->pluginURL . 'css/chld-thm-cfg.css', array(), '1.6.2');
|
92 |
|
93 |
// we need to use local jQuery UI Widget/Menu/Selectmenu 1.11.2 because selectmenu is not included in < 1.11.2
|
94 |
// this will be updated in a later release to use WP Core scripts when it is widely adopted
|
6 |
Class: Child_Theme_Configurator
|
7 |
Plugin URI: http://www.lilaeamedia.com/plugins/child-theme-configurator/
|
8 |
Description: Main Controller Class
|
9 |
+
Version: 1.6.2.1
|
10 |
Author: Lilaea Media
|
11 |
Author URI: http://www.lilaeamedia.com/
|
12 |
Text Domain: chld_thm_cfg
|
88 |
$this->ui->render();
|
89 |
}
|
90 |
function enqueue_scripts() {
|
91 |
+
wp_enqueue_style('chld-thm-cfg-admin', $this->pluginURL . 'css/chld-thm-cfg.css', array(), '1.6.2.1');
|
92 |
|
93 |
// we need to use local jQuery UI Widget/Menu/Selectmenu 1.11.2 because selectmenu is not included in < 1.11.2
|
94 |
// this will be updated in a later release to use WP Core scripts when it is widely adopted
|
js/chld-thm-cfg.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
* Script: chld-thm-cfg.js
|
3 |
* Plugin URI: http://www.lilaeamedia.com/plugins/child-theme-configurator/
|
4 |
* Description: Handles jQuery, AJAX and other UI
|
5 |
-
* Version: 1.6.2
|
6 |
* Author: Lilaea Media
|
7 |
* Author URI: http://www.lilaeamedia.com/
|
8 |
* License: GPLv2
|
2 |
* Script: chld-thm-cfg.js
|
3 |
* Plugin URI: http://www.lilaeamedia.com/plugins/child-theme-configurator/
|
4 |
* Description: Handles jQuery, AJAX and other UI
|
5 |
+
* Version: 1.6.2.1
|
6 |
* Author: Lilaea Media
|
7 |
* Author URI: http://www.lilaeamedia.com/
|
8 |
* License: GPLv2
|
readme.txt
CHANGED
@@ -4,15 +4,15 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: child theme, customize, CSS, responsive, css editor, theme generator, stylesheet, customizer
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.1
|
7 |
-
Stable tag: 1.6.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
-
Create a Child Theme
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
-
Child Theme Configurator is a fast and easy to use CSS editor that allows you to create Child Themes and customize them
|
16 |
|
17 |
= Take Control of Your Child Themes =
|
18 |
|
@@ -27,12 +27,12 @@ When you are ready, just activate the Child Theme and your WordPress site takes
|
|
27 |
= Why create Child Themes using the Child Theme Configurator? =
|
28 |
|
29 |
* Update themes without losing customizations
|
|
|
30 |
* Save hours of development time
|
31 |
* Make modifications above and beyond the theme Customizer
|
32 |
* Enqueue (link) parent theme stylesheet instead of using @import
|
33 |
* Export Child Theme as Zip Archive
|
34 |
* Import web fonts and use them in place of theme fonts
|
35 |
-
* Apply changes in a child theme without touching the parent theme
|
36 |
* Identify and override exact selectors from the parent theme
|
37 |
* Change specific colors, backgrounds, font styles, etc., without changing other elements
|
38 |
* Automatically create and preview CSS3 gradients
|
@@ -94,10 +94,10 @@ Learn more at http://www.lilaeamedia.com/plugins/intelliwidget-responsive-menu
|
|
94 |
5. Save Backup (optional)
|
95 |
|
96 |
6. Choose parent stylesheet handling
|
97 |
-
* Select
|
98 |
* Select @import for older themes that do not enqueue the stylesheet. If the parent styles do not appear when you activate the child theme, you probably need to use this option. NOTE: this was the only method used in previous versions of Child Theme Configurator.
|
99 |
* Select "None" if the parent theme does not use the main 'style.css' for its core styles but enqueues it for child themes. This is a common practice with more recent themes.
|
100 |
-
* If you do not know which option to use, select
|
101 |
|
102 |
7. Restore from backup (optional).
|
103 |
|
@@ -262,7 +262,10 @@ https://www.youtube.com/watch?v=iBiiAgsK4G4
|
|
262 |
|
263 |
== Changelog ==
|
264 |
|
265 |
-
= 1.6.2 =
|
|
|
|
|
|
|
266 |
* Fix: replaced wp_normalize_path with class method to support legacy WP versions
|
267 |
* Fix: support for multiple layered background images
|
268 |
* Fix: background:none being parsed into gradient origin parameter
|
@@ -447,7 +450,7 @@ https://www.youtube.com/watch?v=iBiiAgsK4G4
|
|
447 |
|
448 |
== Upgrade Notice ==
|
449 |
|
450 |
-
v.1.6.2 Fixes
|
451 |
|
452 |
== Override Parent Styles ==
|
453 |
|
4 |
Tags: child theme, customize, CSS, responsive, css editor, theme generator, stylesheet, customizer
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.1
|
7 |
+
Stable tag: 1.6.2.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
+
Create a Child Theme and customize the stylesheet as you wish. Search, preview and modify any selector, rule or value using this fast CSS editor.
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
+
Child Theme Configurator is a fast and easy to use CSS editor that allows you to create Child Themes and customize them beyond the options of the theme Customizer. Designed for WordPress users who want to be able to customize stylesheets directly, the Child Theme Configurator lets you easily identify and override the exact CSS attributes you want to change. It gives you unlimited control over your WordPress look and feel while leaving your Parent Theme untouched.
|
16 |
|
17 |
= Take Control of Your Child Themes =
|
18 |
|
27 |
= Why create Child Themes using the Child Theme Configurator? =
|
28 |
|
29 |
* Update themes without losing customizations
|
30 |
+
* Easily copy widgets, menus and other options to a child theme
|
31 |
* Save hours of development time
|
32 |
* Make modifications above and beyond the theme Customizer
|
33 |
* Enqueue (link) parent theme stylesheet instead of using @import
|
34 |
* Export Child Theme as Zip Archive
|
35 |
* Import web fonts and use them in place of theme fonts
|
|
|
36 |
* Identify and override exact selectors from the parent theme
|
37 |
* Change specific colors, backgrounds, font styles, etc., without changing other elements
|
38 |
* Automatically create and preview CSS3 gradients
|
94 |
5. Save Backup (optional)
|
95 |
|
96 |
6. Choose parent stylesheet handling
|
97 |
+
* Select 'link' if the parent theme uses the main 'style.css' stylesheet and correctly enqueues it for child themes (default).
|
98 |
* Select @import for older themes that do not enqueue the stylesheet. If the parent styles do not appear when you activate the child theme, you probably need to use this option. NOTE: this was the only method used in previous versions of Child Theme Configurator.
|
99 |
* Select "None" if the parent theme does not use the main 'style.css' for its core styles but enqueues it for child themes. This is a common practice with more recent themes.
|
100 |
+
* If you do not know which option to use, select 'link'.
|
101 |
|
102 |
7. Restore from backup (optional).
|
103 |
|
262 |
|
263 |
== Changelog ==
|
264 |
|
265 |
+
= 1.6.2.1 =
|
266 |
+
* Fix: Regular expression introduced in version 1.6.2 parses selectors incorrectly.
|
267 |
+
|
268 |
+
= 1.6.2 =
|
269 |
* Fix: replaced wp_normalize_path with class method to support legacy WP versions
|
270 |
* Fix: support for multiple layered background images
|
271 |
* Fix: background:none being parsed into gradient origin parameter
|
450 |
|
451 |
== Upgrade Notice ==
|
452 |
|
453 |
+
v.1.6.2.1 Fixes a bug in the stylesheet parser that was an unintended consequence of a "fix" introduced in v.1.6.2.
|
454 |
|
455 |
== Override Parent Styles ==
|
456 |
|