Skip to:
Content

BuddyPress.org

Changeset 10852


Ignore:
Timestamp:
06/01/2016 04:34:39 PM (8 years ago)
Author:
r-a-y
Message:

Embeds: Move embed filters to bp-activity-filters.php.

This increases legibility from a dev's perspective.

Props DJPaul.

See #7104.

Location:
trunk/src/bp-activity
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/bp-activity-embeds.php

    r10851 r10852  
    2323        buddypress()->activity->oembed = new BP_Activity_oEmbed_Extension;
    2424    }
    25 
    26     add_filter( 'bp_activity_get_embed_excerpt', 'wptexturize' );
    27     add_filter( 'bp_activity_get_embed_excerpt', 'convert_chars' );
    28     add_filter( 'bp_activity_get_embed_excerpt', 'make_clickable', 9 );
    29     add_filter( 'bp_activity_get_embed_excerpt', 'bp_activity_embed_excerpt_onclick_location_filter' );
    30     add_filter( 'bp_activity_get_embed_excerpt', 'bp_activity_at_name_filter' );
    31     add_filter( 'bp_activity_get_embed_excerpt', 'convert_smilies', 20 );
    32     add_filter( 'bp_activity_get_embed_excerpt', 'wpautop', 30 );
    3325}
    3426add_action( 'bp_loaded', 'bp_activity_setup_oembed' );
  • trunk/src/bp-activity/bp-activity-filters.php

    r10850 r10852  
    4444add_filter( 'bp_get_activity_latest_update',         'wptexturize' );
    4545add_filter( 'bp_get_activity_latest_update_excerpt', 'wptexturize' );
     46add_filter( 'bp_activity_get_embed_excerpt',         'wptexturize' );
    4647
    4748add_filter( 'bp_get_activity_action',                'convert_smilies' );
     
    5152add_filter( 'bp_get_activity_latest_update',         'convert_smilies' );
    5253add_filter( 'bp_get_activity_latest_update_excerpt', 'convert_smilies' );
     54add_filter( 'bp_activity_get_embed_excerpt',         'convert_smilies' );
    5355
    5456add_filter( 'bp_get_activity_action',                'convert_chars' );
     
    5860add_filter( 'bp_get_activity_latest_update',         'convert_chars' );
    5961add_filter( 'bp_get_activity_latest_update_excerpt', 'convert_chars' );
     62add_filter( 'bp_activity_get_embed_excerpt',         'convert_chars' );
    6063
    6164add_filter( 'bp_get_activity_action',                'wpautop' );
     
    6366add_filter( 'bp_get_activity_content',               'wpautop' );
    6467add_filter( 'bp_get_activity_feed_item_description', 'wpautop' );
     68add_filter( 'bp_activity_get_embed_excerpt',         'wpautop' );
    6569
    6670add_filter( 'bp_get_activity_action',                'make_clickable', 9 );
     
    7175add_filter( 'bp_get_activity_latest_update_excerpt', 'make_clickable', 9 );
    7276add_filter( 'bp_get_activity_feed_item_description', 'make_clickable', 9 );
     77add_filter( 'bp_activity_get_embed_excerpt',         'make_clickable', 9 );
    7378
    7479add_filter( 'bp_acomment_name',                      'stripslashes_deep', 5 );
     
    95100add_filter( 'group_forum_post_text_before_save',     'bp_activity_at_name_filter' );
    96101add_filter( 'the_content',                           'bp_activity_at_name_filter' );
     102add_filter( 'bp_activity_get_embed_excerpt',         'bp_activity_at_name_filter' );
    97103
    98104add_filter( 'bp_get_activity_parent_content',        'bp_create_excerpt' );
     
    103109add_filter( 'bp_get_total_favorite_count_for_user', 'bp_core_number_format' );
    104110add_filter( 'bp_get_total_mention_count_for_user',  'bp_core_number_format' );
     111
     112add_filter( 'bp_activity_get_embed_excerpt', 'bp_activity_embed_excerpt_onclick_location_filter', 9 );
    105113
    106114/* Actions *******************************************************************/
Note: See TracChangeset for help on using the changeset viewer.