wp_dashboard_secondary_output

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

WordPress Version: 4.4

/**
 * Deprecated dashboard secondary output.
 *
 * @deprecated 3.8.0
 */
function wp_dashboard_secondary_output()
{
}

WordPress Version: 3.8

function wp_dashboard_secondary_output()
{
}

WordPress Version: 3.7

/**
 * Display secondary dashboard RSS widget feed.
 *
 * @since 2.5.0
 *
 * @return unknown
 */
function wp_dashboard_secondary_output()
{
    $widgets = get_option('dashboard_widget_options');
    @extract(@$widgets['dashboard_secondary'], EXTR_SKIP);
    $rss = @fetch_feed($url);
    if (is_wp_error($rss)) {
        if (is_admin() || current_user_can('manage_options')) {
            echo '<div class="rss-widget"><p>';
            printf(__('<strong>RSS Error</strong>: %s'), $rss->get_error_message());
            echo '</p></div>';
        }
    } elseif (!$rss->get_item_quantity()) {
        $rss->__destruct();
        unset($rss);
        return false;
    } else {
        echo '<div class="rss-widget">';
        wp_widget_rss_output($rss, $widgets['dashboard_secondary']);
        echo '</div>';
        $rss->__destruct();
        unset($rss);
    }
}