This commit is contained in:
Alexander Agnarson 2019-02-17 14:28:35 +01:00
parent b14ccb1b03
commit 7e3774b663
168 changed files with 2453 additions and 2788 deletions

View file

@ -6,7 +6,7 @@
*
* @package Kirki
* @subpackage Controls
* @copyright Copyright (c) 2017, Aristeides Stathopoulos
* @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
* @license https://opensource.org/licenses/MIT
* @since 1.0
*/
@ -37,7 +37,8 @@ class Kirki_Control_Slider extends Kirki_Control_Base {
public function to_json() {
parent::to_json();
$this->json['choices'] = wp_parse_args(
$this->json['choices'], array(
$this->json['choices'],
array(
'min' => '0',
'max' => '100',
'step' => '1',