Version Description
March 17, 2016, dev time: 10 minutes
- FIX: PHP notice for non-standard controls when the
element
defined in anoutput
argument is of typearray
.
Download this release
Release Info
Developer | aristath |
Plugin | Kirki |
Version | 2.2.2 |
Comparing to | |
See all releases |
Code changes from version 2.2.1 to 2.2.2
- README.md +7 -1
- includes/class-kirki-toolkit.php +1 -1
- includes/output/class-kirki-output.php +6 -6
- kirki.php +1 -1
- languages/kirki.pot +2 -2
- package.json +8 -6
- readme.txt +7 -1
- tests/test-kirki-fonts.php +5 -0
README.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
**Donate link:** http://kirki.org/
|
5 |
**Requires at least:** 4.4
|
6 |
**Tested up to:** 4.5
|
7 |
-
**Stable tag:** 2.2.
|
8 |
**License:** GPLv2 or later
|
9 |
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -37,6 +37,12 @@ If you want to integrate Kirki in your theme or plugin, please read the instruct
|
|
37 |
|
38 |
## Changelog ##
|
39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
### 2.2.1 ###
|
41 |
|
42 |
March 17, 2016, dev time: 3 hours
|
4 |
**Donate link:** http://kirki.org/
|
5 |
**Requires at least:** 4.4
|
6 |
**Tested up to:** 4.5
|
7 |
+
**Stable tag:** 2.2.2
|
8 |
**License:** GPLv2 or later
|
9 |
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
37 |
|
38 |
## Changelog ##
|
39 |
|
40 |
+
### 2.2.2 ###
|
41 |
+
|
42 |
+
March 17, 2016, dev time: 10 minutes
|
43 |
+
|
44 |
+
* FIX: PHP notice for non-standard controls when the `element` defined in an `output` argument is of type `array`.
|
45 |
+
|
46 |
### 2.2.1 ###
|
47 |
|
48 |
March 17, 2016, dev time: 3 hours
|
includes/class-kirki-toolkit.php
CHANGED
@@ -30,7 +30,7 @@ if ( ! class_exists( 'Kirki_Toolkit' ) ) {
|
|
30 |
* @access protected
|
31 |
* @var string
|
32 |
*/
|
33 |
-
protected static $version = '2.2.
|
34 |
|
35 |
/**
|
36 |
* Access the single instance of this class
|
30 |
* @access protected
|
31 |
* @var string
|
32 |
*/
|
33 |
+
protected static $version = '2.2.2';
|
34 |
|
35 |
/**
|
36 |
* Access the single instance of this class
|
includes/output/class-kirki-output.php
CHANGED
@@ -89,6 +89,12 @@ class Kirki_Output {
|
|
89 |
continue;
|
90 |
}
|
91 |
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
$value = $this->process_value( $value, $output );
|
93 |
$this->process_output( $output, $value );
|
94 |
}
|
@@ -112,12 +118,6 @@ class Kirki_Output {
|
|
112 |
$output['units'] = ( isset( $output['units'] ) ) ? $output['units'] : '';
|
113 |
$output['suffix'] = ( isset( $output['suffix'] ) ) ? $output['suffix'] : '';
|
114 |
|
115 |
-
if ( is_array( $output['element'] ) ) {
|
116 |
-
$output['element'] = array_unique( $output['element'] );
|
117 |
-
sort( $output['element'] );
|
118 |
-
$output['element'] = implode( ',', $output['element'] );
|
119 |
-
}
|
120 |
-
|
121 |
$this->styles[ $output['media_query'] ][ $output['element'] ][ $output['property'] ] = $output['prefix'] . $value . $output['units'] . $output['suffix'];
|
122 |
}
|
123 |
|
89 |
continue;
|
90 |
}
|
91 |
|
92 |
+
if ( isset( $output['element'] ) && is_array( $output['element'] ) ) {
|
93 |
+
$output['element'] = array_unique( $output['element'] );
|
94 |
+
sort( $output['element'] );
|
95 |
+
$output['element'] = implode( ',', $output['element'] );
|
96 |
+
}
|
97 |
+
|
98 |
$value = $this->process_value( $value, $output );
|
99 |
$this->process_output( $output, $value );
|
100 |
}
|
118 |
$output['units'] = ( isset( $output['units'] ) ) ? $output['units'] : '';
|
119 |
$output['suffix'] = ( isset( $output['suffix'] ) ) ? $output['suffix'] : '';
|
120 |
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
$this->styles[ $output['media_query'] ][ $output['element'] ][ $output['property'] ] = $output['prefix'] . $value . $output['units'] . $output['suffix'];
|
122 |
}
|
123 |
|
kirki.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: The ultimate WordPress Customizer Toolkit
|
6 |
* Author: Aristeides Stathopoulos
|
7 |
* Author URI: http://aristeides.com
|
8 |
-
* Version: 2.2.
|
9 |
* Text Domain: kirki
|
10 |
*
|
11 |
* GitHub Plugin URI: aristath/kirki
|
5 |
* Description: The ultimate WordPress Customizer Toolkit
|
6 |
* Author: Aristeides Stathopoulos
|
7 |
* Author URI: http://aristeides.com
|
8 |
+
* Version: 2.2.2
|
9 |
* Text Domain: kirki
|
10 |
*
|
11 |
* GitHub Plugin URI: aristath/kirki
|
languages/kirki.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the same license as the Kirki Toolkit package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Kirki Toolkit 2.2.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/kirki\n"
|
7 |
-
"POT-Creation-Date: 2016-03-17
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
2 |
# This file is distributed under the same license as the Kirki Toolkit package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Kirki Toolkit 2.2.2\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/kirki\n"
|
7 |
+
"POT-Creation-Date: 2016-03-17 19:25:36+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
{
|
2 |
"name": "kirki-toolkit",
|
3 |
-
"version": "2.2.
|
4 |
"author": "Aristeides Stathopoulos",
|
5 |
"homepage": "http://kirki.org",
|
6 |
"repository": {
|
@@ -8,12 +8,14 @@
|
|
8 |
"url": "https://github.com/aristath/kirki"
|
9 |
},
|
10 |
"bugs": {
|
11 |
-
"url"
|
12 |
},
|
13 |
-
"licenses": [
|
14 |
-
|
15 |
-
|
16 |
-
|
|
|
|
|
17 |
"engines": {
|
18 |
"node": ">= 0.10.0"
|
19 |
},
|
1 |
{
|
2 |
"name": "kirki-toolkit",
|
3 |
+
"version": "2.2.2",
|
4 |
"author": "Aristeides Stathopoulos",
|
5 |
"homepage": "http://kirki.org",
|
6 |
"repository": {
|
8 |
"url": "https://github.com/aristath/kirki"
|
9 |
},
|
10 |
"bugs": {
|
11 |
+
"url": "https://github.com/aristath/kirki/issues"
|
12 |
},
|
13 |
+
"licenses": [
|
14 |
+
{
|
15 |
+
"type": "MIT",
|
16 |
+
"url": "https://opensource.org/licenses/MIT"
|
17 |
+
}
|
18 |
+
],
|
19 |
"engines": {
|
20 |
"node": ">= 0.10.0"
|
21 |
},
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: customizer,options framework, theme, mods, toolkit
|
|
4 |
Donate link: http://kirki.org/
|
5 |
Requires at least: 4.4
|
6 |
Tested up to: 4.5
|
7 |
-
Stable tag: 2.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -37,6 +37,12 @@ If you want to integrate Kirki in your theme or plugin, please read the instruct
|
|
37 |
|
38 |
== Changelog ==
|
39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
= 2.2.1 =
|
41 |
|
42 |
March 17, 2016, dev time: 3 hours
|
4 |
Donate link: http://kirki.org/
|
5 |
Requires at least: 4.4
|
6 |
Tested up to: 4.5
|
7 |
+
Stable tag: 2.2.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
37 |
|
38 |
== Changelog ==
|
39 |
|
40 |
+
= 2.2.2 =
|
41 |
+
|
42 |
+
March 17, 2016, dev time: 10 minutes
|
43 |
+
|
44 |
+
* FIX: PHP notice for non-standard controls when the `element` defined in an `output` argument is of type `array`.
|
45 |
+
|
46 |
= 2.2.1 =
|
47 |
|
48 |
March 17, 2016, dev time: 3 hours
|
tests/test-kirki-fonts.php
CHANGED
@@ -36,4 +36,9 @@ class Test_Kirki_Fonts extends WP_UnitTestCase {
|
|
36 |
$this->assertArrayHasKey( 'monospace', Kirki_Fonts::get_backup_fonts() );
|
37 |
}
|
38 |
|
|
|
|
|
|
|
|
|
|
|
39 |
}
|
36 |
$this->assertArrayHasKey( 'monospace', Kirki_Fonts::get_backup_fonts() );
|
37 |
}
|
38 |
|
39 |
+
public function test_get_all_subsets() {
|
40 |
+
$this->assertTrue( is_array( Kirki_Fonts::get_all_subsets() ) );
|
41 |
+
$this->assertEquals( Kirki_Fonts::get_all_subsets(), Kirki_Fonts::get_google_font_subsets() );
|
42 |
+
}
|
43 |
+
|
44 |
}
|