Make WordPress Core


Ignore:
Timestamp:
10/07/2011 04:57:12 AM (14 years ago)
Author:
nacin
Message:

Revert [18861], [18862], [18864], [18874], [18879], and [18880]. see #18785.

File:
1 edited

Legend:

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

    r18904 r18911  
    802802 */
    803803function screen_meta( $screen ) {
    804     _deprecated_function( __FUNCTION__, '3.3', '$current_screen->render_screen_meta()' );
    805 
    806804    $current_screen = get_current_screen();
    807805    $current_screen->render_screen_meta();
    808806}
    809 
    810 /**
    811  * {@internal Missing Short Description}}
    812  *
    813  * @since 2.7.0
    814  * @deprecated 3.3.0
    815  */
    816 function favorite_actions() {
    817     _deprecated_function( __FUNCTION__, '3.3' );
    818 }
    819 
    820 /**
    821  * Old way of adding contextual help text for a page. Use:
    822  * $current_screen->add_help_tab( array(
    823  *      'id'      => 'my-id', // required
    824  *      'title'   => __('My Tab'), // required
    825  *      'content' => 'help html'
    826  * ));
    827  *
    828  * Creates a 'Screen Info' help tab.
    829  *
    830  * @since 2.7.0
    831  * @deprecated 3.3.0
    832  *
    833  * @param string    $screen The handle for the screen to add help to.  This is usually the hook name returned by the add_*_page() functions.
    834  * @param string    $help   The content of a 'Screen Info' help tab.
    835  */
    836 function add_contextual_help($screen, $help) {
    837     //_deprecated_function( __FUNCTION__, '3.3', '$current_screen->add_help_tab()' );
    838 
    839     global $_wp_contextual_help;
    840 
    841     if ( is_string($screen) )
    842         $screen = convert_to_screen($screen);
    843 
    844     if ( !isset($_wp_contextual_help) )
    845         $_wp_contextual_help = array();
    846 
    847     $_wp_contextual_help[$screen->id] = $help;
    848 }
    849 
    850 /**
    851  * Old way of registering and configuring an admin screen option. Use $current_screen->add_option().
    852  *
    853  * @since 3.1.0
    854  * @deprecated 3.3.0
    855  *
    856  * @param string $option An option name.
    857  * @param mixed $args Option dependent arguments
    858  * @return void
    859  */
    860 function add_screen_option( $option, $args = array() ) {
    861     //_deprecated_function( __FUNCTION__, '3.3', '$current_screen->add_option()' );
    862 
    863     $current_screen = get_current_screen();
    864 
    865     if ( ! $current_screen )
    866         return;
    867 
    868     return $current_screen->add_option( $option, $args );
    869 }
    870 
    871 /**
    872  * Output the HTML for hiding metaboxes on the page, use $current_screen->render_metabox_prefs().
    873  *
    874  * Note that the outputted HTML contains the H5 heading and the DIV class="metabox-prefs".
    875  *
    876  * @since 2.7.0
    877  * @deprecated 3.3.0
    878  *
    879  * @param mixed $screen
    880  */
    881 function meta_box_prefs($screen) {
    882     //_deprecated_function( __FUNCTION__, '3.3', '$current_screen->render_metabox_prefs()' );
    883 
    884     $current_screen = get_current_screen();
    885 
    886     if ( ! $current_screen )
    887         return;
    888 
    889     return $current_screen->render_metabox_prefs();
    890 }
    891 
    892 function get_screen_icon( $screen = '' ) {
    893     //_deprecated_function( __FUNCTION__, '3.3', '$current_screen->get_screen_icon()' );
    894 
    895     $current_screen = get_current_screen();
    896 
    897     if ( ! $current_screen )
    898         return;
    899 
    900     return $current_screen->get_screen_icon($screen);
    901 }
    902 
    903 
Note: See TracChangeset for help on using the changeset viewer.