From 9bf29bd7a03db537f8abb69b93b0aea4024d96c7 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sun, 20 Aug 2017 04:02:16 +0000 Subject: [PATCH] Administration: Explicitly deprecate `screen_icon()` and `get_screen_icon()`, which were soft-deprecated in [26537] for 3.8.0. Props ippei-sumida for the initial patch. Fixes #41153. git-svn-id: https://develop.svn.wordpress.org/trunk@41274 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/deprecated.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/wp-admin/includes/deprecated.php b/src/wp-admin/includes/deprecated.php index b032018f28..7c0d08c6b3 100644 --- a/src/wp-admin/includes/deprecated.php +++ b/src/wp-admin/includes/deprecated.php @@ -1220,22 +1220,23 @@ function the_attachment_links( $id = false ) { * Displays a screen icon. * * @since 2.7.0 - * @since 3.8.0 Screen icons are no longer used in WordPress. This function no longer produces output. - * @deprecated 3.8.0 Use get_screen_icon() - * @see get_screen_icon() + * @deprecated 3.8.0 */ function screen_icon() { + _deprecated_function( __FUNCTION__, '3.8.0' ); echo get_screen_icon(); } /** * Retrieves the screen icon (no longer used in 3.8+). * + * @since 3.2.0 * @deprecated 3.8.0 * * @return string */ function get_screen_icon() { + _deprecated_function( __FUNCTION__, '3.8.0' ); return ''; }