Skip to:
Content

BuddyPress.org

Changeset 10849


Ignore:
Timestamp:
06/01/2016 03:38:07 PM (9 years ago)
Author:
r-a-y
Message:

Embeds: Rename classes to change Component to Extension.

Props DJPaul.

Fixes #7103.

Location:
trunk/src
Files:
3 edited
2 moved

Legend:

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

    r10838 r10849  
    1717// Embeds - only applicable for WP 4.5+
    1818if ( bp_get_major_wp_version() >= 4.5 && bp_is_active( 'activity', 'embeds' ) ) {
    19     require dirname( __FILE__ ) . '/classes/class-bp-activity-oembed-component.php';
     19    require dirname( __FILE__ ) . '/classes/class-bp-activity-oembed-extension.php';
    2020}
  • trunk/src/bp-activity/bp-activity-embeds.php

    r10845 r10849  
    2121function bp_activity_setup_oembed() {
    2222    if ( bp_get_major_wp_version() >= 4.5 && bp_is_active( 'activity', 'embeds' ) ) {
    23         buddypress()->activity->oembed = new BP_Activity_oEmbed_Component;
     23        buddypress()->activity->oembed = new BP_Activity_oEmbed_Extension;
    2424    }
    2525
  • trunk/src/bp-activity/classes/class-bp-activity-oembed-extension.php

    r10848 r10849  
    1010defined( 'ABSPATH' ) || exit;
    1111
    12 require_once( buddypress()->plugin_dir . '/bp-core/classes/class-bp-oembed-component.php' );
    13 
    1412/**
    1513 * oEmbed handler to respond and render single activity items.
     
    1715 * @since 2.6.0
    1816 */
    19 class BP_Activity_oEmbed_Component extends BP_oEmbed_Component {
     17class BP_Activity_oEmbed_Extension extends BP_Core_oEmbed_Extension {
    2018    /**
    2119     * Custom oEmbed slug endpoint.
  • trunk/src/bp-core/bp-core-classes.php

    r10745 r10849  
    3333require dirname( __FILE__ ) . '/classes/class-bp-core-nav.php';
    3434require dirname( __FILE__ ) . '/classes/class-bp-core-nav-item.php';
     35require dirname( __FILE__ ) . '/classes/class-bp-core-oembed-extension.php';
    3536
    3637if ( buddypress()->do_nav_backcompat ) {
  • trunk/src/bp-core/classes/class-bp-core-oembed-extension.php

    r10848 r10849  
    1515 * @since 2.6.0
    1616 */
    17 abstract class BP_oEmbed_Component {
     17abstract class BP_Core_oEmbed_Extension {
    1818
    1919    /** START PROPERTIES ****************************************************/
Note: See TracChangeset for help on using the changeset viewer.