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.

Built from https://develop.svn.wordpress.org/trunk@41274


git-svn-id: http://core.svn.wordpress.org/trunk@41114 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2017-08-20 04:03:45 +00:00
parent a1ceeba8ac
commit 510fb1fe85
2 changed files with 5 additions and 4 deletions

View File

@ -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 '<!-- Screen icons are no longer used as of WordPress 3.8. -->';
}

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.9-alpha-41273';
$wp_version = '4.9-alpha-41274';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.