WordPress.org

Make WordPress Core

Ticket #26119: 26119-deprecate-functions.patch

File 26119-deprecate-functions.patch, 1.2 KB (added by TobiasBg, 8 years ago)

Deprecate screen icon functions

  • src/wp-admin/includes/screen.php

    diff --git a/src/wp-admin/includes/screen.php b/src/wp-admin/includes/screen.php
    index 2ab5161..f12b951 100644
    a b function add_screen_option( $option, $args = array() ) { 
    129129 *
    130130 * @uses get_screen_icon()
    131131 * @since 2.7.0
     132 * @deprecated 3.8.0
    132133 *
    133134 * @param string|WP_Screen $screen Optional. Accepts a screen object (and defaults to the current screen object)
    134135 *      which it uses to determine an icon HTML ID. Or, if a string is provided, it is used to form the icon HTML ID.
    135136 */
    136137function screen_icon( $screen = '' ) {
     138        _deprecated_function( __FUNCTION__, '3.8' );
    137139        echo get_screen_icon( $screen );
    138140}
    139141
    function screen_icon( $screen = '' ) { 
    141143 * Gets a screen icon.
    142144 *
    143145 * @since 3.2.0
     146 * @deprecated 3.8.0
    144147 *
    145148 * @global $post_ID
    146149 * @param string|WP_Screen $screen Optional. Accepts a screen object (and defaults to the current screen object)
    function screen_icon( $screen = '' ) { 
    148151 * @return string HTML for the screen icon.
    149152 */
    150153function get_screen_icon( $screen = '' ) {
     154        _deprecated_function( __FUNCTION__, '3.8' );
    151155        if ( empty( $screen ) )
    152156                $screen = get_current_screen();
    153157        elseif ( is_string( $screen ) )