Changeset 10851
- Timestamp:
- 06/01/2016 04:27:58 PM (8 years ago)
- Location:
- trunk/src/bp-activity
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-classes.php
r10849 r10851 16 16 17 17 // Embeds - only applicable for WP 4.5+ 18 if ( bp_get_major_wp_version() >= 4.5&& bp_is_active( 'activity', 'embeds' ) ) {18 if ( version_compare( $GLOBALS['wp_version'], '4.5', '>=' ) && bp_is_active( 'activity', 'embeds' ) ) { 19 19 require dirname( __FILE__ ) . '/classes/class-bp-activity-oembed-extension.php'; 20 20 } -
trunk/src/bp-activity/bp-activity-embeds.php
r10849 r10851 20 20 */ 21 21 function bp_activity_setup_oembed() { 22 if ( bp_get_major_wp_version() >= 4.5&& bp_is_active( 'activity', 'embeds' ) ) {22 if ( version_compare( $GLOBALS['wp_version'], '4.5', '>=' ) && bp_is_active( 'activity', 'embeds' ) ) { 23 23 buddypress()->activity->oembed = new BP_Activity_oEmbed_Extension; 24 24 } -
trunk/src/bp-activity/classes/class-bp-activity-component.php
r10838 r10851 75 75 76 76 // Embeds - only applicable for WP 4.5+ 77 if ( bp_get_major_wp_version() >= 4.5&& bp_is_active( $this->id, 'embeds' ) ) {77 if ( version_compare( $GLOBALS['wp_version'], '4.5', '>=' ) && bp_is_active( $this->id, 'embeds' ) ) { 78 78 $includes[] = 'embeds'; 79 79 }
Note: See TracChangeset
for help on using the changeset viewer.