mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-06 12:51:58 +00:00
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:
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user