WordPress 4.4
[autoinstalls/wordpress.git] / wp-includes / customize / class-wp-customize-site-icon-control.php
1 <?php
2 /**
3  * Customize API: WP_Customize_Site_Icon_Control class
4  *
5  * @package WordPress
6  * @subpackage Customize
7  * @since 4.4.0
8  */
9
10 /**
11  * Customize Site Icon control class.
12  *
13  * Used only for custom functionality in JavaScript.
14  *
15  * @since 4.3.0
16  *
17  * @see WP_Customize_Cropped_Image_Control
18  */
19 class WP_Customize_Site_Icon_Control extends WP_Customize_Cropped_Image_Control {
20
21         /**
22          * Control type.
23          *
24          * @since 4.3.0
25          * @access public
26          * @var string
27          */
28         public $type = 'site_icon';
29
30         /**
31          * Constructor.
32          *
33          * @since 4.3.0
34          * @access public
35          *
36          * @param WP_Customize_Manager $manager Customizer bootstrap instance.
37          * @param string               $id      Control ID.
38          * @param array                $args    Optional. Arguments to override class property defaults.
39          */
40         public function __construct( $manager, $id, $args = array() ) {
41                 parent::__construct( $manager, $id, $args );
42                 add_action( 'customize_controls_print_styles', 'wp_site_icon', 99 );
43         }
44 }