CoreFiles by mySites.guru
class-wp-customize-site-icon-control.php44 lines, 982 bytes, from wordpress-4.4.21.zip
Raw History Compare with 4.4.20
md5
13e7745023db1567d5b987ff54f71b2f
sha1
586e7837e371d2bc933d5af115813c48dbb1393c
sha256
653610be8913f844f725b7a47b6dbe57e992c1bbca0cfa04e57de801d5ea19db
<?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 );
	}
}

The same content is in 39 releases, WordPress 4.4-beta2 to 4.4.34. See them all, or every version of this file.