From a1ceeba8ac7e3395161b45b670eb1f5db599623d Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sun, 20 Aug 2017 03:38:46 +0000 Subject: [PATCH] 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. Built from https://develop.svn.wordpress.org/trunk@41273 git-svn-id: http://core.svn.wordpress.org/trunk@41113 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../customize/class-wp-customize-image-control.php | 12 +++++++++--- wp-includes/version.php | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/wp-includes/customize/class-wp-customize-image-control.php b/wp-includes/customize/class-wp-customize-image-control.php index ffb89e3f4a..38ac608f1f 100644 --- a/wp-includes/customize/class-wp-customize-image-control.php +++ b/wp-includes/customize/class-wp-customize-image-control.php @@ -56,7 +56,9 @@ class WP_Customize_Image_Control extends WP_Customize_Upload_Control { * @param string $label * @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 @@ -64,7 +66,9 @@ class WP_Customize_Image_Control extends WP_Customize_Upload_Control { * * @param string $id */ - public function remove_tab( $id ) {} + public function remove_tab( $id ) { + _deprecated_function( __METHOD__, '4.1.0' ); + } /** * @since 3.4.0 @@ -73,5 +77,7 @@ class WP_Customize_Image_Control extends WP_Customize_Upload_Control { * @param string $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' ); + } } diff --git a/wp-includes/version.php b/wp-includes/version.php index 9d94e3ebe4..6037127970 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.9-alpha-41272'; +$wp_version = '4.9-alpha-41273'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.