function get_latest_forum_posts($forum_id, $limit = 0, $page = 1) { bb_log_deprecated('function', __FUNCTION__, 'bb_get_latest_forum_posts'); return bb_get_latest_forum_posts($forum_id, $limit, $page); }
$link_self = bb_get_tag_posts_rss_link($feed_id); break; case 'forum-topics': if (!($topics = get_latest_topics($feed_id))) { die; } $posts = array(); foreach ($topics as $topic) { $posts[] = bb_get_first_post($topic->topic_id); } $title = esc_html(sprintf(__('%1$s » Forum: %2$s - Recent Topics'), bb_get_option('name'), get_forum_name($feed_id))); $link = get_forum_link($feed_id); $link_self = bb_get_forum_topics_rss_link($feed_id); break; case 'forum-posts': if (!($posts = bb_get_latest_forum_posts($feed_id))) { die; } $title = esc_html(sprintf(__('%1$s » Forum: %2$s - Recent Posts'), bb_get_option('name'), get_forum_name($feed_id))); $link = get_forum_link($feed_id); $link_self = bb_get_forum_posts_rss_link($feed_id); break; // Get just the first post from the latest topics // Get just the first post from the latest topics case 'all-topics': if (!($topics = get_latest_topics())) { die; } $posts = array(); foreach ($topics as $topic) { $posts[] = bb_get_first_post($topic->topic_id);