Changeset 11957
- Timestamp:
- 04/05/2018 02:43:31 PM (8 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
-
bp-activity/bp-activity-embeds.php (modified) (1 diff)
-
bp-activity/classes/class-bp-activity-component.php (modified) (1 diff)
-
bp-core/bp-core-adminbar.php (modified) (1 diff)
-
bp-core/classes/class-bp-admin.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-embeds.php
r11956 r11957 20 20 */ 21 21 function bp_activity_setup_oembed() { 22 if ( version_compare( $GLOBALS['wp_version'], '4.5', '>=' ) && bp_is_active( 'activity', 'embeds' ) ) { 23 buddypress()->activity->oembed = new BP_Activity_oEmbed_Extension; 24 } 22 buddypress()->activity->oembed = new BP_Activity_oEmbed_Extension; 25 23 } 26 24 add_action( 'bp_loaded', 'bp_activity_setup_oembed' ); -
trunk/src/bp-activity/classes/class-bp-activity-component.php
r11956 r11957 72 72 } 73 73 74 // Embeds - only applicable for WP 4.5+ 75 if ( version_compare( $GLOBALS['wp_version'], '4.5', '>=' ) && bp_is_active( $this->id, 'embeds' ) ) { 76 $includes[] = 'embeds'; 77 } 74 // Embeds 75 $includes[] = 'embeds'; 78 76 79 77 if ( is_admin() ) { -
trunk/src/bp-core/bp-core-adminbar.php
r11956 r11957 48 48 * 49 49 * @since 1.2.0 50 *51 * @global string $wp_version52 50 */ 53 51 function bp_core_load_admin_bar() { -
trunk/src/bp-core/classes/class-bp-admin.php
r11956 r11957 337 337 $hooks = array(); 338 338 339 // Require WP 4.0+. 340 if ( bp_is_root_blog() && version_compare( $GLOBALS['wp_version'], '4.0', '>=' ) ) { 341 // Appearance > Emails. 342 $hooks[] = add_theme_page( 343 _x( 'Emails', 'screen heading', 'buddypress' ), 344 _x( 'Emails', 'screen heading', 'buddypress' ), 345 $this->capability, 346 'bp-emails-customizer-redirect', 347 'bp_email_redirect_to_customizer' 348 ); 349 350 // Emails > Customize. 351 $hooks[] = add_submenu_page( 352 'edit.php?post_type=' . bp_get_email_post_type(), 353 _x( 'Customize', 'email menu label', 'buddypress' ), 354 _x( 'Customize', 'email menu label', 'buddypress' ), 355 $this->capability, 356 'bp-emails-customizer-redirect', 357 'bp_email_redirect_to_customizer' 358 ); 359 } 339 // Appearance > Emails. 340 $hooks[] = add_theme_page( 341 _x( 'Emails', 'screen heading', 'buddypress' ), 342 _x( 'Emails', 'screen heading', 'buddypress' ), 343 $this->capability, 344 'bp-emails-customizer-redirect', 345 'bp_email_redirect_to_customizer' 346 ); 347 348 // Emails > Customize. 349 $hooks[] = add_submenu_page( 350 'edit.php?post_type=' . bp_get_email_post_type(), 351 _x( 'Customize', 'email menu label', 'buddypress' ), 352 _x( 'Customize', 'email menu label', 'buddypress' ), 353 $this->capability, 354 'bp-emails-customizer-redirect', 355 'bp_email_redirect_to_customizer' 356 ); 360 357 361 358 foreach( $hooks as $hook ) {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)