Skip to:
Content

BuddyPress.org


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.

File:
1 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' );
Note: See TracChangeset for help on using the changeset viewer.