From 92cba72bef8ac8569d404b9accb45dba00f722a4 Mon Sep 17 00:00:00 2001 From: azaozz Date: Tue, 4 Oct 2011 23:10:02 +0000 Subject: [PATCH] Don't trigger "deprecated" warnings before WP_Screen is finalized, see #18785 git-svn-id: http://svn.automattic.com/wordpress/trunk@18880 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/deprecated.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-admin/includes/deprecated.php b/wp-admin/includes/deprecated.php index 53230c477a..6bff608c63 100644 --- a/wp-admin/includes/deprecated.php +++ b/wp-admin/includes/deprecated.php @@ -834,7 +834,7 @@ function favorite_actions() { * @param string $help The content of a 'Screen Info' help tab. */ function add_contextual_help($screen, $help) { - _deprecated_function( __FUNCTION__, '3.3', '$current_screen->add_help_tab()' ); + //_deprecated_function( __FUNCTION__, '3.3', '$current_screen->add_help_tab()' ); global $_wp_contextual_help; @@ -858,7 +858,7 @@ function add_contextual_help($screen, $help) { * @return void */ function add_screen_option( $option, $args = array() ) { - _deprecated_function( __FUNCTION__, '3.3', '$current_screen->add_option()' ); + //_deprecated_function( __FUNCTION__, '3.3', '$current_screen->add_option()' ); $current_screen = get_current_screen(); @@ -879,7 +879,7 @@ function add_screen_option( $option, $args = array() ) { * @param mixed $screen */ function meta_box_prefs($screen) { - _deprecated_function( __FUNCTION__, '3.3', '$current_screen->render_metabox_prefs()' ); + //_deprecated_function( __FUNCTION__, '3.3', '$current_screen->render_metabox_prefs()' ); $current_screen = get_current_screen(); @@ -890,7 +890,7 @@ function meta_box_prefs($screen) { } function get_screen_icon( $screen = '' ) { - _deprecated_function( __FUNCTION__, '3.3', '$current_screen->get_screen_icon()' ); + //_deprecated_function( __FUNCTION__, '3.3', '$current_screen->get_screen_icon()' ); $current_screen = get_current_screen();