Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/01/2012 08:20:19 PM (12 years ago)
Author:
djpaul
Message:

Extend the functionality of the latest post tracking in the Blogs component by creating template functions for a post's title and content, as well as fetching any post thumbnail. Fixes #4570

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-blogs/bp-blogs-filters.php

    r6342 r6372  
    88 * @since BuddyPress (1.6)
    99 */
     10
     11// Display filters
     12
     13add_filter( 'bp_get_blog_latest_post_title', 'wptexturize'   );
     14add_filter( 'bp_get_blog_latest_post_title', 'convert_chars' );
     15add_filter( 'bp_get_blog_latest_post_title', 'trim'          );
     16
     17add_filter( 'bp_blog_latest_post_content', 'wptexturize'        );
     18add_filter( 'bp_blog_latest_post_content', 'convert_smilies'    );
     19add_filter( 'bp_blog_latest_post_content', 'convert_chars'      );
     20add_filter( 'bp_blog_latest_post_content', 'wpautop'            );
     21add_filter( 'bp_blog_latest_post_content', 'shortcode_unautop'  );
     22add_filter( 'bp_blog_latest_post_content', 'prepend_attachment' );
    1023
    1124/**
Note: See TracChangeset for help on using the changeset viewer.