WordPress Version: 4.9
/**
* Displays a screen icon.
*
* @since 2.7.0
* @deprecated 3.8.0
*/
function screen_icon()
{
_deprecated_function(__FUNCTION__, '3.8.0');
echo get_screen_icon();
}
The timeline below displays how wordpress function screen_icon has changed across different WordPress versions. If a version is not listed, refer to the next available version below.
/**
* Displays a screen icon.
*
* @since 2.7.0
* @deprecated 3.8.0
*/
function screen_icon()
{
_deprecated_function(__FUNCTION__, '3.8.0');
echo get_screen_icon();
}
/**
* 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()
*/
function screen_icon()
{
echo get_screen_icon();
}
/**#@+
* 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
*/
function screen_icon()
{
echo get_screen_icon();
}
/**
* Displays a screen icon.
*
* @uses get_screen_icon()
* @since 2.7.0
*
* @param string|WP_Screen $screen Optional. Accepts a screen object (and defaults to the current screen object)
* which it uses to determine an icon HTML ID. Or, if a string is provided, it is used to form the icon HTML ID.
*/
function screen_icon($screen = '')
{
echo get_screen_icon($screen);
}