mirror of
git://develop.git.wordpress.org/
synced 2025-03-15 01:19:51 +01:00
Docs: Explicitly deprecate the add_tab()
, remove_tab()
, and print_tab_image()
methods for WP_Customize_Image_Control
, originally soft-deprecated in 4.1.
Props jrf. See #41121. git-svn-id: https://develop.svn.wordpress.org/trunk@41273 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
fff123a8ea
commit
281d6c23f8
@ -56,7 +56,9 @@ class WP_Customize_Image_Control extends WP_Customize_Upload_Control {
|
|||||||
* @param string $label
|
* @param string $label
|
||||||
* @param mixed $callback
|
* @param mixed $callback
|
||||||
*/
|
*/
|
||||||
public function add_tab( $id, $label, $callback ) {}
|
public function add_tab( $id, $label, $callback ) {
|
||||||
|
_deprecated_function( __METHOD__, '4.1.0' );
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @since 3.4.0
|
* @since 3.4.0
|
||||||
@ -64,7 +66,9 @@ class WP_Customize_Image_Control extends WP_Customize_Upload_Control {
|
|||||||
*
|
*
|
||||||
* @param string $id
|
* @param string $id
|
||||||
*/
|
*/
|
||||||
public function remove_tab( $id ) {}
|
public function remove_tab( $id ) {
|
||||||
|
_deprecated_function( __METHOD__, '4.1.0' );
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @since 3.4.0
|
* @since 3.4.0
|
||||||
@ -73,5 +77,7 @@ class WP_Customize_Image_Control extends WP_Customize_Upload_Control {
|
|||||||
* @param string $url
|
* @param string $url
|
||||||
* @param string $thumbnail_url
|
* @param string $thumbnail_url
|
||||||
*/
|
*/
|
||||||
public function print_tab_image( $url, $thumbnail_url = null ) {}
|
public function print_tab_image( $url, $thumbnail_url = null ) {
|
||||||
|
_deprecated_function( __METHOD__, '4.1.0' );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user