function bb_filter_feed_content()
{
    if (bb_is_feed()) {
        add_filter('bb_title_rss', 'strip_tags');
        add_filter('bb_title_rss', 'ent2ncr', 8);
        add_filter('bb_title_rss', 'esc_html');
        add_filter('bb_description_rss', 'strip_tags');
        add_filter('bb_description_rss', 'ent2ncr', 8);
        add_filter('bb_description_rss', 'esc_html');
        add_filter('post_author', 'ent2ncr', 8);
        add_filter('post_link', 'esc_html');
        add_filter('post_text', 'ent2ncr', 8);
        add_filter('post_text', 'bb_convert_chars');
    }
}
Exemplo n.º 2
0
function is_bb_feed()
{
    bb_log_deprecated('function', __FUNCTION__, 'bb_is_feed');
    return bb_is_feed();
}
Exemplo n.º 3
0
function socialit_insert_in_post($post_content)
{
    global $socialit_plugopts, $bbdb;
    // decide whether or not to generate the bookmarks.
    $istopic = bb_is_topic();
    if ($istopic && $socialit_plugopts['topic'] == 1 || bb_is_feed() && $socialit_plugopts['feed'] == 1 && bb_get_topicmeta(get_topic_id(), 'hide_socialit') != "true") {
        //socials should be generated and added
        $post_id_fc = get_post_id();
        //post id for check
        if (bb_is_first($post_id_fc)) {
            $post_content .= get_socialit();
        }
    }
    return $post_content;
}
Exemplo n.º 4
0
function bb_filter_feed_content()
{
    if (bb_is_feed()) {
        add_filter('bb_title_rss', 'ent2ncr');
        add_filter('topic_title', 'ent2ncr');
        add_filter('post_link', 'esc_html');
        add_filter('post_text', 'htmlspecialchars');
        // encode_bad should not be overruled by esc_html
        add_filter('post_text', 'ent2ncr');
    }
}