Make WordPress Core

Changeset 41274


Ignore:
Timestamp:
08/20/2017 04:02:16 AM (7 years ago)
Author:
DrewAPicture
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/deprecated.php

    r41111 r41274  
    12211221 *
    12221222 * @since 2.7.0
    1223  * @since 3.8.0 Screen icons are no longer used in WordPress. This function no longer produces output.
    1224  * @deprecated 3.8.0 Use get_screen_icon()
    1225  * @see get_screen_icon()
     1223 * @deprecated 3.8.0
    12261224 */
    12271225function screen_icon() {
     1226    _deprecated_function( __FUNCTION__, '3.8.0' );
    12281227    echo get_screen_icon();
    12291228}
     
    12321231 * Retrieves the screen icon (no longer used in 3.8+).
    12331232 *
     1233 * @since 3.2.0
    12341234 * @deprecated 3.8.0
    12351235 *
     
    12371237 */
    12381238function get_screen_icon() {
     1239    _deprecated_function( __FUNCTION__, '3.8.0' );
    12391240    return '<!-- Screen icons are no longer used as of WordPress 3.8. -->';
    12401241}
Note: See TracChangeset for help on using the changeset viewer.