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
This commit is contained in:
azaozz 2011-10-04 23:10:02 +00:00
parent d0ceca2496
commit 92cba72bef
1 changed files with 4 additions and 4 deletions

View File

@ -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();