mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-05 02:10:45 +01:00
aaf99e6913
WordPress' code just... wasn't. This is now dealt with. Props jrf, pento, netweb, GaryJ, jdgrimes, westonruter, Greg Sherwood from PHPCS, and everyone who's ever contributed to WPCS and PHPCS. Fixes #41057. Built from https://develop.svn.wordpress.org/trunk@42343 git-svn-id: http://core.svn.wordpress.org/trunk@42172 1a063a9b-81f0-0310-95a4-ce76da25c4cd
60 lines
1.0 KiB
PHP
60 lines
1.0 KiB
PHP
<?php
|
|
/**
|
|
* Customize API: WP_Customize_Image_Control class
|
|
*
|
|
* @package WordPress
|
|
* @subpackage Customize
|
|
* @since 4.4.0
|
|
*/
|
|
|
|
/**
|
|
* Customize Image Control class.
|
|
*
|
|
* @since 3.4.0
|
|
*
|
|
* @see WP_Customize_Upload_Control
|
|
*/
|
|
class WP_Customize_Image_Control extends WP_Customize_Upload_Control {
|
|
public $type = 'image';
|
|
public $mime_type = 'image';
|
|
|
|
/**
|
|
* @since 3.4.2
|
|
* @deprecated 4.1.0
|
|
*/
|
|
public function prepare_control() {}
|
|
|
|
/**
|
|
* @since 3.4.0
|
|
* @deprecated 4.1.0
|
|
*
|
|
* @param string $id
|
|
* @param string $label
|
|
* @param mixed $callback
|
|
*/
|
|
public function add_tab( $id, $label, $callback ) {
|
|
_deprecated_function( __METHOD__, '4.1.0' );
|
|
}
|
|
|
|
/**
|
|
* @since 3.4.0
|
|
* @deprecated 4.1.0
|
|
*
|
|
* @param string $id
|
|
*/
|
|
public function remove_tab( $id ) {
|
|
_deprecated_function( __METHOD__, '4.1.0' );
|
|
}
|
|
|
|
/**
|
|
* @since 3.4.0
|
|
* @deprecated 4.1.0
|
|
*
|
|
* @param string $url
|
|
* @param string $thumbnail_url
|
|
*/
|
|
public function print_tab_image( $url, $thumbnail_url = null ) {
|
|
_deprecated_function( __METHOD__, '4.1.0' );
|
|
}
|
|
}
|