mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-13 22:26:06 +01:00
68526a8bf1
See #34432. Built from https://develop.svn.wordpress.org/trunk@35389 git-svn-id: http://core.svn.wordpress.org/trunk@35353 1a063a9b-81f0-0310-95a4-ce76da25c4cd
45 lines
982 B
PHP
45 lines
982 B
PHP
<?php
|
|
/**
|
|
* Customize API: WP_Customize_Site_Icon_Control class
|
|
*
|
|
* @package WordPress
|
|
* @subpackage Customize
|
|
* @since 4.4.0
|
|
*/
|
|
|
|
/**
|
|
* Customize Site Icon control class.
|
|
*
|
|
* Used only for custom functionality in JavaScript.
|
|
*
|
|
* @since 4.3.0
|
|
*
|
|
* @see WP_Customize_Cropped_Image_Control
|
|
*/
|
|
class WP_Customize_Site_Icon_Control extends WP_Customize_Cropped_Image_Control {
|
|
|
|
/**
|
|
* Control type.
|
|
*
|
|
* @since 4.3.0
|
|
* @access public
|
|
* @var string
|
|
*/
|
|
public $type = 'site_icon';
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @since 4.3.0
|
|
* @access public
|
|
*
|
|
* @param WP_Customize_Manager $manager Customizer bootstrap instance.
|
|
* @param string $id Control ID.
|
|
* @param array $args Optional. Arguments to override class property defaults.
|
|
*/
|
|
public function __construct( $manager, $id, $args = array() ) {
|
|
parent::__construct( $manager, $id, $args );
|
|
add_action( 'customize_controls_print_styles', 'wp_site_icon', 99 );
|
|
}
|
|
}
|