diff --git a/wp-admin/includes/deprecated.php b/wp-admin/includes/deprecated.php index ebaf4487bc..160a0f4ecd 100644 --- a/wp-admin/includes/deprecated.php +++ b/wp-admin/includes/deprecated.php @@ -703,9 +703,9 @@ function wp_dashboard_quick_press_output() { } /** - * @since 2.7 + * @since 2.7.0 * @deprecated 3.3 - * @deprecated Use wp_editor(). + * @deprecated Use wp_editor() * @see wp_editor() */ function wp_tiny_mce() { @@ -714,20 +714,80 @@ function wp_tiny_mce() { wp_editor('', 'content'); } -// see WP_Editor for the next 4 +/** + * @deprecated 3.3.0 + * @deprecated Use wp_editor() + * @see wp_editor() + */ function wp_preload_dialogs() { - _deprecated_function( __FUNCTION__, '3.3' ); + _deprecated_function( __FUNCTION__, '3.3', 'wp_editor()' ); } +/** + * @deprecated 3.3.0 + * @deprecated Use wp_editor() + * @see wp_editor() + */ function wp_print_editor_js() { - _deprecated_function( __FUNCTION__, '3.3' ); + _deprecated_function( __FUNCTION__, '3.3', 'wp_editor()' ); } +/** + * @deprecated 3.3.0 + * @deprecated Use wp_editor() + * @see wp_editor() + */ function wp_quicktags() { - _deprecated_function( __FUNCTION__, '3.3' ); + _deprecated_function( __FUNCTION__, '3.3', 'wp_editor()' ); } +/** + * @deprecated 3.3.0 + * @deprecated Use wp_editor() + * @see wp_editor() + */ function wp_fullscreen_html() { - _deprecated_function( __FUNCTION__, '3.3' ); + _deprecated_function( __FUNCTION__, '3.3', 'wp_editor()' ); } +/** + * Returns the screen layout options. + * + * @since unknown + * @deprecated 3.3.0 + * @deprecated Use $current_screen->render_screen_layout() + * @see WP_Screen::render_screen_layout() + */ +function screen_layout( $screen ) { + _deprecated_function( __FUNCTION__, '3.3', '$current_screen->render_screen_layout()' ); + + $current_screen = get_current_screen(); + + if ( ! $current_screen ) + return ''; + + ob_start(); + $current_screen->render_screen_layout(); + return ob_get_clean(); +} + +/** + * Returns the screen's per-page options. + * + * @since unknown + * @deprecated 3.3.0 + * @deprecated Use $current_screen->render_per_page_options() + * @see WP_Screen::render_per_page_options() + */ +function screen_options( $screen ) { + _deprecated_function( __FUNCTION__, '3.3', '$current_screen->render_per_page_options()' ); + + $current_screen = get_current_screen(); + + if ( ! $current_screen ) + return ''; + + ob_start(); + $current_screen->render_per_page_options(); + return ob_get_clean(); +} \ No newline at end of file diff --git a/wp-admin/includes/screen.php b/wp-admin/includes/screen.php index 938986c4a6..9a2365bf6c 100644 --- a/wp-admin/includes/screen.php +++ b/wp-admin/includes/screen.php @@ -265,24 +265,6 @@ function add_contextual_help($screen, $help) { $_wp_contextual_help[$screen->id] = $help; } -/** - * Returns the screen layout options. - * - * @todo: deprecate? - */ -function screen_layout($screen) { - $current_screen = get_current_screen(); - - if ( ! $current_screen ) - return ''; - - ob_start(); - $current_screen->render_screen_layout(); - $screen_layout = ob_get_clean(); - - return $screen_layout; -} - /** * Register and configure an admin screen option * @@ -301,25 +283,6 @@ function add_screen_option( $option, $args = array() ) { return $current_screen->add_option( $option, $args ); } - -/** - * Returns the screen's per-page options. - * - * @todo: deprecate? - */ -function screen_options($screen) { - $current_screen = get_current_screen(); - - if ( ! $current_screen ) - return ''; - - ob_start(); - $current_screen->render_per_page_options(); - $per_page_options = ob_get_clean(); - - return $per_page_options; -} - function screen_icon( $screen = '' ) { echo get_screen_icon( $screen ); }