curver/functions/kirki/controls/php/class-kirki-control-cropped-image.php

38 lines
742 B
PHP
Raw Normal View History

2019-02-10 20:21:07 +01:00
<?php
/**
* Customizer Control: cropped-image.
*
* @package Kirki
* @subpackage Controls
2019-02-17 14:28:35 +01:00
* @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
2020-02-25 18:04:54 +01:00
* @license https://opensource.org/licenses/MIT
2019-02-10 20:21:07 +01:00
* @since 3.0.23
*/
/**
* Adds the image control.
*/
class Kirki_Control_Cropped_Image extends WP_Customize_Cropped_Image_Control {
/**
* Whitelisting the "required" argument.
*
* @since 3.0.17
* @access public
* @var array
*/
public $required = array();
/**
* Refresh the parameters passed to the JavaScript via JSON.
*
* @since 3.0.23
*
* @uses WP_Customize_Media_Control::to_json()
*/
public function to_json() {
parent::to_json();
$this->json['required'] = $this->required;
}
}