Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #2535

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,18 +125,18 @@ Bugfixes:
### 4.0.6 - January 03, 2022 ###
* Fix `active_callback` issue when using nested condition

### 4.0.5 - Dezember 31, 2021 ###
### 4.0.5 - December 31, 2021 ###
* Fix `toggleClass` usage when using `js_vars`

### 4.0.4 - Dezember 31, 2021 ###
### 4.0.4 - December 31, 2021 ###
* Allow string (numeric) as the choices value in slider control
* Fix the compatibility issue when using Kirki::get_option to get the value of fields registered using new API.

### 4.0.3 - Dezember 30, 2021 ###
### 4.0.3 - December 30, 2021 ###

* Fixed: Fatal error caused by wrong folder name

### 4.0 - Dezember 29, 2021 ###
### 4.0 - December 29, 2021 ###

* Kirki 4.0 Release

Expand Down Expand Up @@ -451,7 +451,7 @@ January 23 2018, dev time: 1 hour.

Please note that the typography controls since v3.0.23 no longer require subsets. This is not a bug or omission, subsets are simply no longer necessary because there's an implementation now that loads them properly without requiring the user to define it.

* Fix: partial reversion of webfontloader improvements in order to resolve an issue with incorect font-weights loading.
* Fix: partial reversion of webfontloader improvements in order to resolve an issue with incorrect font-weights loading.

## 3.0.24

Expand Down Expand Up @@ -508,7 +508,7 @@ December 18 2017, dev time: 3 hours
December 13 2017, dev time: 1.5 hours

* Fix: Use `repeat` instead of `repeat-all` in background controls [#1701](https://github.com/aristath/kirki/issues/1701)
* Fix: Use `set_url_scheme()` when outputing images [#1697](https://github.com/aristath/kirki/issues/1697)
* Fix: Use `set_url_scheme()` when outputting images [#1697](https://github.com/aristath/kirki/issues/1697)
* Fix: `textarea` control is broken with HTML content [#1694](https://github.com/aristath/kirki/issues/1694) props @tutv95
* Fix: Typo in `radio` controls [#1699](https://github.com/aristath/kirki/issues/1699)
* Fix: variants selection for standard font-families.
Expand Down Expand Up @@ -560,7 +560,7 @@ November 19 2017, dev time: 8 hours
* Fix: `slider` controls were not updating the numeric value visually in their textfield when the control was not using `postMessage` [#1633](https://github.com/aristath/kirki/issues/1627)
* Fix: Deprecated call to non-existing `Kirki_Styles_Frontend`, props @FrankM1 [#1644](https://github.com/aristath/kirki/issues/1644)
* Fix: Updated the customizer-styling module for compatibility with WP 4.9 [#1639](https://github.com/aristath/kirki/issues/1639)
* Fix: `code` controls were not using the corect `priority` [#1622](https://github.com/aristath/kirki/issues/1622)
* Fix: `code` controls were not using the correct `priority` [#1622](https://github.com/aristath/kirki/issues/1622)
* Fix: Multiple reports of errors in the console.
* New: Refactored the `number` controls [#1631](https://github.com/aristath/kirki/issues/1627)
* New: Refactored the `color` controls. [#1646](https://github.com/aristath/kirki/issues/1646)
Expand Down Expand Up @@ -599,8 +599,8 @@ It also changes the file structure and paves the way for a 3.1 rewrite which wil

* Fix: WordPress 4.9 compatibility for colorpickers.
* Fix: WordPress 4.9 compatibility for typography controls.
* Fix: WordPress 4.9 compatibility for multicolor contols.
* Fix: WordPress 4.9 compatibility for background contols.
* Fix: WordPress 4.9 compatibility for multicolor controls.
* Fix: WordPress 4.9 compatibility for background controls.
* Fix: Refactored `editor` controls to make them compatible with WP 4.9
* Fix: Remove CodeMirror and use the code control from WordPress Core. Code controls will be displayed as textareas in WP older than 4.9.
* Fix: Use new `DateTimeControl` if in WP 4.9+ for date control.
Expand Down Expand Up @@ -919,7 +919,7 @@ May 2, 2016, dev time: 52 hours.
* FIX: Name attribute in repeaters (props @guillaumemolter).
* FIX: Missing label for checkbox controls inside repeaters (props @guillaumemolter).
* FIX: Placing 2 editor controls in the customizer leads to odd behaviour ([#140](https://github.com/aristath/kirki/issues/140)).
* FIX: `active_callback` conbined with the old `required` argument. ([#906](https://github.com/aristath/kirki/issues/906)).
* FIX: `active_callback` combined with the old `required` argument. ([#906](https://github.com/aristath/kirki/issues/906)).
* FIX: Double prefix and suffix in `js_vars` ([#943](https://github.com/aristath/kirki/issues/943)).
* FIX: Typography control returns both 'subset' and 'subsets' indexes with the same value ([#948](https://github.com/aristath/kirki/issues/948)).
* FIX: Use `strict` JS mode in all controls.
Expand All @@ -933,7 +933,7 @@ April 19, 2016, dev time: 30 hours.
* FIX: Image sub-controls in repeaters were causing a JS error.
* FIX: Text Domain Compliance with Themecheck.
* FIX: PostMessage scripts when using more than 1 elements for the output.
* FIX: Default values for swithes, toggles & checkboxes.
* FIX: Default values for switches, toggles & checkboxes.
* FIX: Conflict with WP Core's `dropdown-pages` control.
* FIX: Auto-transport not working when using serialized options instead of theme_mods.
* FIX: `value_pattern` was not working properly when used in `js_vars`.
Expand Down Expand Up @@ -975,7 +975,7 @@ Kirki is now 100% WordPress Coding Standards compliant.

April 6, 2016, dev time: 5 hours.

* FIX: Enqueued assets missing when useg WP_DEBUG & WP_DEBUG_SCRIPT
* FIX: Enqueued assets missing when used WP_DEBUG & WP_DEBUG_SCRIPT
* FIX: Checkboxes were not properly displaying their values
* FIX: Javascript errors when `number` controls were used without `min`, `max` or `step`.
* FIX: Multiselect controls issue with the `sanitize_callback` used.
Expand All @@ -986,13 +986,13 @@ April 6, 2016, dev time: 5 hours.
April 5, 2016, dev time: 23 hours.

* FIX: Properly parsing `postMessage` scripts when `transport` is set to `auto`.
* FIX: Background image was outputing CSS even if it was empty.
* FIX: Background image was outputting CSS even if it was empty.
* FIX: Default value for checkboxes.
* FIX: Issue with plugin URLs in the customizer, when the plugin was embedded in a theme.
* FIX: Descriptions were now shown in `sortable` fields.
* FIX: Reset not working for textarea fields.
* FIX: In some cases only the first element in `output` arguments was being processed.
* FIX: edge-case bugfix for select controls when data saved if the db was somehow mis-formatted.
* FIX: edge-case bugfix for select controls when data saved if the db was somehow misformatted.
* FIX: Repeater controls now use image IDs instead of image URLs. Props @guillaumemolter
* NEW: Added `text-align` ability in `typography` fields.
* NEW: Added `text-transform` ability in `typography` fields.
Expand Down Expand Up @@ -1136,7 +1136,7 @@ February 13, 2016, dev time: 1 hour.

* FIX: Google fonts bug (use double quotes when font name contains a space character)
* FIX: Checkbox control bug (checkboxes were always displayed as checked, regardless of their actual value)
* NEW: Intruducing KIRKI_NO_OUTPUT constant that disables CSS output completely when set to true.
* NEW: Introducing KIRKI_NO_OUTPUT constant that disables CSS output completely when set to true.

## 2.0.8

Expand All @@ -1162,7 +1162,7 @@ January 18, 2016, dev time: 7 hours
* FIX: Fix active callback for multidimensional arrays. (props @andrezrv)
* FIX: Correctly check current value of checkbox control. (props @andrezrv)
* FIX: Bug in the sortable field (props @daviedR)
* FIX: Fixed some bugs that occured when using serialized options instead of theme_mods
* FIX: Fixed some bugs that occurred when using serialized options instead of theme_mods
* NEW: Added an image sub-field to repeater fields (props @sayedwp)
* NEW: Added a JS callback to js_vars (props @pingram3541)
* TWEAK: Settings sanitization
Expand Down Expand Up @@ -1486,7 +1486,7 @@ October 25, 2014

* FIX: bugfix for selector
* NEW: Change the Kirki theme based on which admin theme is selected.
* FIX: Tranlsation domain issue
* FIX: Translation domain issue
* NEW: Added a \"group_title\" control
* FIX: Updated the required script
* FIX: Updating CSS
Expand Down
2 changes: 1 addition & 1 deletion kirki-packages/compatibility/src/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ protected function set_js_vars() {
}

// Set transport to refresh initially.
// Serves as a fallback in case we failt to auto-calculate js_vars.
// Serves as a fallback in case we failed to auto-calculate js_vars.
$this->transport = 'refresh';

$js_vars = array();
Expand Down
2 changes: 1 addition & 1 deletion kirki-packages/compatibility/src/Values.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public static function get_value( $config_id = '', $field_id = '' ) {
*
* @static
* @access public
* @param array $field The field aruments.
* @param array $field The field arguments.
* @return string|array
*/
public static function get_sanitized_field_value( $field ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const KirkiColorPaletteControl = wp.customize.Control.extend({
{...control.params}
control={control}
customizerSetting={control.setting}
setNotificationContainer={control.setNotificationCotainer}
setNotificationContainer={control.setNotificationContainer}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs attention.

value={control.params.value}
/>,
control.container[0]
Expand Down Expand Up @@ -100,7 +100,7 @@ const KirkiColorPaletteControl = wp.customize.Control.extend({
},

/**
* This method will be overriden by the rendered component.
* This method will be overridden by the rendered component.
*/
updateComponentState: (val) => { },

Expand Down
2 changes: 1 addition & 1 deletion kirki-packages/control-dashicons/src/Control/Dashicons.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ protected function content_template() {
'taxonomies': '<?php esc_html_e( 'Taxonomies', 'kirki' ); ?>',
'widgets': '<?php esc_html_e( 'Widgets', 'kirki' ); ?>',
'notifications': '<?php esc_html_e( 'Notifications', 'kirki' ); ?>',
'misc': '<?php esc_html_e( 'Miscelaneous', 'kirki' ); ?>'
'misc': '<?php esc_html_e( 'Miscellaneous', 'kirki' ); ?>'
};
#>
<# _.each( dashiconSections, function( sectionLabel, sectionKey ) { #>
Expand Down
2 changes: 1 addition & 1 deletion kirki-packages/control-dashicons/src/Util/Dashicons.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static function get_icons() {
'image-editing' => [ 'image-crop', 'image-rotate', 'image-rotate-left', 'image-rotate-right', 'image-flip-vertical', 'image-flip-horizontal', 'image-filter', 'undo', 'redo' ],
'tinymce' => [ 'editor-bold', 'editor-italic', 'editor-ul', 'editor-ol', 'editor-ol-rtl', 'editor-quote', 'editor-alignleft', 'editor-aligncenter', 'editor-alignright', 'editor-insertmore', 'editor-spellcheck', 'editor-expand', 'editor-contract', 'editor-kitchensink', 'editor-underline', 'editor-justify', 'editor-textcolor', 'editor-paste-word', 'editor-paste-text', 'editor-removeformatting', 'editor-video', 'editor-customchar', 'editor-outdent', 'editor-indent', 'editor-help', 'editor-strikethrough', 'editor-unlink', 'editor-rtl', 'editor-ltr', 'editor-break', 'editor-code', 'editor-paragraph', 'editor-table' ],
'posts' => [ 'align-left', 'align-right', 'align-center', 'align-none', 'lock', 'unlock', 'calendar', 'calendar-alt', 'visibility', 'hidden', 'post-status', 'edit', 'trash', 'sticky' ],
'sorting' => [ 'external', 'arrow-up', 'arrow-down', 'arrow-right', 'arrow-left', 'arrow-up-alt', 'arrow-down-alt', 'arrow-right-alt', 'arrow-left-alt', 'arrow-up-alt2', 'arrow-down-alt2', 'arrow-right-alt2', 'arrow-left-alt2', 'sort', 'leftright', 'randomize', 'list-view', 'exerpt-view', 'grid-view', 'move' ],
'sorting' => [ 'external', 'arrow-up', 'arrow-down', 'arrow-right', 'arrow-left', 'arrow-up-alt', 'arrow-down-alt', 'arrow-right-alt', 'arrow-left-alt', 'arrow-up-alt2', 'arrow-down-alt2', 'arrow-right-alt2', 'arrow-left-alt2', 'sort', 'leftright', 'randomize', 'list-view', 'excerpt-view', 'grid-view', 'move' ],
'social' => [ 'share', 'share-alt', 'share-alt2', 'twitter', 'rss', 'email', 'email-alt', 'email-alt2', 'facebook', 'facebook-alt', 'googleplus', 'networking', 'instagram' ],
'wordpress_org' => [ 'hammer', 'art', 'migrate', 'performance', 'universal-access', 'universal-access-alt', 'tickets', 'nametag', 'clipboard', 'heart', 'megaphone', 'schedule', 'tide', 'rest-api', 'code-standards' ],
'products' => [ 'wordpress', 'wordpress-alt', 'pressthis', 'update', 'update-alt', 'screenoptions', 'info', 'cart', 'feedback', 'cloud', 'translation' ],
Expand Down
2 changes: 1 addition & 1 deletion kirki-packages/control-editor/src/control.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ wp.customize.controlConstructor[ 'kirki-editor' ] = wp.customize.kirkiDynamicCon
mediaButtons: true
};

// Overwrite the default paramaters if choices is defined.
// Overwrite the default parameters if choices is defined.
if ( wp.editor && wp.editor.initialize ) {
wp.editor.initialize( id, jQuery.extend( {}, defaultParams, control.params.choices ) );
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use Kirki\Module\CSS\Output;

/**
* Outpout overrides.
* Output overrides.
*/
class ReactColorful extends Output {

Expand Down
2 changes: 1 addition & 1 deletion kirki-packages/control-repeater/src/Control/Repeater.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ public function to_json() {

/**
* Render the control's content.
* Allows the content to be overriden without having to rewrite the wrapper in $this->render().
* Allows the content to be overridden without having to rewrite the wrapper in $this->render().
*
* @access protected
* @since 1.0
Expand Down
2 changes: 1 addition & 1 deletion kirki-packages/control-repeater/src/control.js
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ wp.customize.controlConstructor.repeater = wp.customize.Control.extend({
* @returns {void}
*/
setValue: function (newValue, refresh, filtering) {
// We need to filter the values after the first load to remove data requrired for diplay but that we don't want to save in DB
// We need to filter the values after the first load to remove data required for display but that we don't want to save in DB
var filteredValue = newValue,
filter = [];

Expand Down
4 changes: 2 additions & 2 deletions kirki-packages/control-slider/src/KirkiSliderControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const KirkiSliderControl = wp.customize.Control.extend({
{...control.params}
control={control}
customizerSetting={control.setting}
setNotificationContainer={control.setNotificationCotainer}
setNotificationContainer={control.setNotificationContainer}
value={control.params.value}
/>,
control.container[0]
Expand Down Expand Up @@ -100,7 +100,7 @@ const KirkiSliderControl = wp.customize.Control.extend({
},

/**
* This method will be overriden by the rendered component.
* This method will be overridden by the rendered component.
*/
updateComponentState: (val) => { },

Expand Down
2 changes: 1 addition & 1 deletion kirki-packages/field-background/src/Background.php
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ protected function set_js_vars() {
}

// Set transport to refresh initially.
// Serves as a fallback in case we failt to auto-calculate js_vars.
// Serves as a fallback in case we failed to auto-calculate js_vars.
$this->transport = 'refresh';

$js_vars = [];
Expand Down
2 changes: 1 addition & 1 deletion kirki-packages/field/src/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function() {
// Add customizer control.
add_action( 'customize_register', [ $this, 'add_control' ] );

// Add default filters. Can be overriden in child classes.
// Add default filters. Can be overridden in child classes.
add_filter( 'kirki_field_add_setting_args', [ $this, 'filter_setting_args' ], 10, 2 );
add_filter( 'kirki_field_add_control_args', [ $this, 'filter_control_args' ], 10, 2 );

Expand Down
2 changes: 1 addition & 1 deletion kirki-packages/module-css/src/CSS.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ public function enqueue_styles() {
*
* Why not simply excluding all admin area except gutenberg editing interface?
* Because it would be nice to let the possibility open
* if a 3rd party plugin will output gutenberg syles somewhere in admin area.
* if a 3rd party plugin will output gutenberg styles somewhere in admin area.
*
* Example of possibility:
* In the future, Ultimate Dashboard Pro's admin page feature might supports Gutenberg.
Expand Down
2 changes: 1 addition & 1 deletion kirki-packages/module-css/src/CSS/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public static function css( $field ) {

self::$value = apply_filters( 'kirki_get_value', get_theme_mod( $field['settings'], $default ), $setting_name, $default, $option_type );

// Find the class that will handle the outpout for this field.
// Find the class that will handle the output for this field.
$classname = '\Kirki\Module\CSS\Output';
$field_output_classes = apply_filters( 'kirki_output_control_classnames', [] );
$field_output_classes = apply_filters( "kirki_{$field['kirki_config']}_output_control_classnames", $field_output_classes );
Expand Down
2 changes: 1 addition & 1 deletion kirki-packages/module-css/src/CSS/Output.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ protected function parse_output() {

/**
* Inside gutenberg editing screen, prepend `.editor-styles-wrapper` to the element
* so that it doesn't polute elements other than inside the editing content.
* so that it doesn't pollute elements other than inside the editing content.
*/
if ( isset( $_GET['editor'] ) && 1 === (int) $_GET['editor'] ) {
if ( isset( $output['element'] ) && ! empty( $output['element'] ) ) {
Expand Down
2 changes: 1 addition & 1 deletion kirki-packages/module-webfonts/src/Webfonts/Async.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Adds the Webfont Loader to load fonts asyncronously.
* Adds the Webfont Loader to load fonts asynchronously.
*
* @package kirki-framework/module-webfonts
* @author Themeum
Expand Down
2 changes: 1 addition & 1 deletion kirki-packages/module-webfonts/src/Webfonts/Embed.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Adds the Webfont Loader to load fonts asyncronously.
* Adds the Webfont Loader to load fonts asynchronously.
*
* @package kirki-framework/module-webfonts
* @author Themeum
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ goog.scope(function () {
}

// This is safer than appendChild in IE. appendChild causes random
// JS errors in IE. Sometimes errors in other JS exectution, sometimes
// JS errors in IE. Sometimes errors in other JS execution, sometimes
// complete 'This page cannot be displayed' errors. For our purposes,
// it's equivalent because we don't need to insert at any specific
// location.
Expand Down
4 changes: 2 additions & 2 deletions kirki-packages/util/src/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public static function init_filesystem() {
* @access public
* @see https://pippinsplugins.com/retrieve-attachment-id-from-image-url/
* @param string $url URL to the image.
* @return int|string Numeric ID of the attachement.
* @return int|string Numeric ID of the attachment.
*/
public static function get_image_id( $url ) {
global $wpdb;
Expand Down Expand Up @@ -341,7 +341,7 @@ public static function get_dashicons() {
* @param mixed $value1 The 1st value in the comparison.
* @param mixed $value2 The 2nd value in the comparison.
* @param string $operator The operator we'll use for the comparison.
* @return boolean whether The comparison has succeded (true) or failed (false).
* @return boolean whether The comparison has succeeded (true) or failed (false).
*/
public static function compare_values( $value1, $value2, $operator ) {
if ( '===' === $operator ) {
Expand Down
2 changes: 1 addition & 1 deletion kirki.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function kirki() {
require_once wp_normalize_path( dirname( __FILE__ ) . '/upgrade-notifications.php' ); // phpcs:ignore WPThemeReview.CoreFunctionality.FileInclude

/**
* To enable tests, add this line to your wp-config.php file (or anywhere alse):
* To enable tests, add this line to your wp-config.php file (or anywhere else):
* define( 'KIRKI_TEST', true );
*
* Please note that the example.php file is not included in the wordpress.org distribution
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const KirkiInputSliderControl = wp.customize.Control.extend({
{...control.params}
control={control}
customizerSetting={control.setting}
setNotificationContainer={control.setNotificationCotainer}
setNotificationContainer={control.setNotificationContainer}
value={control.params.value}
/>,
control.container[0]
Expand Down Expand Up @@ -101,7 +101,7 @@ const KirkiInputSliderControl = wp.customize.Control.extend({
},

/**
* This method will be overriden by the rendered component.
* This method will be overridden by the rendered component.
*/
updateComponentState: (val) => {},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use Kirki\Module\CSS\Output;

/**
* Outpout overrides.
* Output overrides.
*/
class Margin extends Output {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace Kirki\Pro\Field\CSS;

/**
* Outpout overrides.
* Output overrides.
*/
class Padding extends Margin {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const KirkiMarginPaddingControl = wp.customize.Control.extend({
{...control.params}
control={control}
customizerSetting={control.setting}
setNotificationContainer={control.setNotificationCotainer}
setNotificationContainer={control.setNotificationContainer}
value={control.params.value}
/>,
control.container[0]
Expand Down Expand Up @@ -101,7 +101,7 @@ const KirkiMarginPaddingControl = wp.customize.Control.extend({
},

/**
* This method will be overriden by the rendered component.
* This method will be overridden by the rendered component.
*/
updateComponentState: (val) => {},

Expand Down
Loading