screen_layout

The timeline below displays how wordpress function screen_layout has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 4.6

/**
 * Returns the screen layout options.
 *
 * @since 2.8.0
 * @deprecated 3.3.0 WP_Screen::render_screen_layout()
 * @see WP_Screen::render_screen_layout()
 */
function screen_layout($screen)
{
    _deprecated_function(__FUNCTION__, '3.3.0', '$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();
}

WordPress Version: 4.4

/**
 * Returns the screen layout options.
 *
 * @since 2.8.0
 * @deprecated 3.3.0 WP_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();
}

WordPress Version: 3.7

/**
 * Returns the screen layout options.
 *
 * @since 2.8.0
 * @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();
}