Deprecate secreen_options(), screen_layout(). see #18785.

git-svn-id: https://develop.svn.wordpress.org/trunk@18858 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2011-10-01 18:07:41 +00:00
parent c0b2567366
commit f214ef7d99
2 changed files with 67 additions and 44 deletions
-37
View File
@@ -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 );
}