Changeset 11955
- Timestamp:
- 04/05/2018 02:37:56 PM (8 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
-
bp-activity/bp-activity-embeds.php (modified) (2 diffs)
-
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) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-embeds.php
r11448 r11955 2 2 /** 3 3 * Functions related to embedding single activity items externally. 4 *5 * Relies on WordPress 4.5.6 4 * 7 5 * @since 2.6.0 … … 20 18 */ 21 19 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 } 20 buddypress()->activity->oembed = new BP_Activity_oEmbed_Extension; 25 21 } 26 22 add_action( 'bp_loaded', 'bp_activity_setup_oembed' ); -
trunk/src/bp-activity/classes/class-bp-activity-component.php
r11885 r11955 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
r11560 r11955 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
r11808 r11955 207 207 ); 208 208 209 // Credits.210 add_dashboard_page(211 __( 'Welcome to BuddyPress', 'buddypress' ),212 __( 'Welcome to BuddyPress', 'buddypress' ),213 'manage_options',214 'bp-credits',215 array( $this, 'credits_screen' )216 );217 218 209 $hooks = array(); 219 210 … … 263 254 'bp-settings', 264 255 'bp_core_admin_settings' 256 ); 257 258 // Credits. 259 $hooks[] = add_submenu_page( 260 $this->settings_page, 261 __( 'BuddyPress Credits', 'buddypress' ), 262 __( 'BuddyPress Credits', 'buddypress' ), 263 $this->capability, 264 'bp-credits', 265 array( $this, 'credits_screen' ) 265 266 ); 266 267 … … 337 338 $hooks = array(); 338 339 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 } 340 // Appearance > Emails. 341 $hooks[] = add_theme_page( 342 _x( 'Emails', 'screen heading', 'buddypress' ), 343 _x( 'Emails', 'screen heading', 'buddypress' ), 344 $this->capability, 345 'bp-emails-customizer-redirect', 346 'bp_email_redirect_to_customizer' 347 ); 348 349 // Emails > Customize. 350 $hooks[] = add_submenu_page( 351 'edit.php?post_type=' . bp_get_email_post_type(), 352 _x( 'Customize', 'email menu label', 'buddypress' ), 353 _x( 'Customize', 'email menu label', 'buddypress' ), 354 $this->capability, 355 'bp-emails-customizer-redirect', 356 'bp_email_redirect_to_customizer' 357 ); 360 358 361 359 foreach( $hooks as $hook ) { … … 518 516 remove_submenu_page( $this->settings_page, 'bp-page-settings' ); 519 517 remove_submenu_page( $this->settings_page, 'bp-settings' ); 518 // remove_submenu_page( $this->settings_page, 'bp-credits' ); 520 519 521 520 // Network Admin Tools. … … 547 546 548 547 <div class="wrap about-wrap"> 549 550 <?php self::welcome_text(); ?> 551 552 <?php self::tab_navigation( __METHOD__ ); ?> 553 554 <?php if ( self::is_new_install() ) : ?> 555 556 <div id="welcome-panel" class="welcome-panel"> 557 <div class="welcome-panel-content"> 558 <h3 style="margin:0;"><?php _e( 'Getting Started with BuddyPress', 'buddypress' ); ?></h3> 559 <div class="welcome-panel-column-container"> 560 <div class="welcome-panel-column"> 561 <h4><?php _e( 'Configure BuddyPress', 'buddypress' ); ?></h4> 562 <ul> 563 <li><?php printf( 564 '<a href="%s" class="welcome-icon welcome-edit-page">' . __( 'Set Up Components', 'buddypress' ) . '</a>', esc_url( bp_get_admin_url( add_query_arg( array( 'page' => 'bp-components' ), $this->settings_page ) ) ) 565 ); ?></li> 566 <li><?php printf( 567 '<a href="%s" class="welcome-icon welcome-edit-page">' . __( 'Assign Components to Pages', 'buddypress' ) . '</a>', esc_url( bp_get_admin_url( add_query_arg( array( 'page' => 'bp-page-settings' ), $this->settings_page ) ) ) 568 ); ?></li> 569 <li><?php printf( 570 '<a href="%s" class="welcome-icon welcome-edit-page">' . __( 'Customize Settings', 'buddypress' ) . '</a>', esc_url( bp_get_admin_url( add_query_arg( array( 'page' => 'bp-settings' ), $this->settings_page ) ) ) 571 ); ?></li> 572 </ul> 573 <a class="button button-primary button-hero" style="margin-bottom:20px;margin-top:0;" href="<?php echo esc_url( bp_get_admin_url( add_query_arg( array( 'page' => 'bp-components' ), $this->settings_page ) ) ); ?>"><?php _e( 'Get Started', 'buddypress' ); ?></a> 574 </div> 575 <div class="welcome-panel-column"> 576 <h4><?php _e( 'Administration Tools', 'buddypress' ); ?></h4> 577 <ul> 578 <?php if ( bp_is_active( 'members' ) ) : ?> 579 <li><?php printf( '<a href="%s" class="welcome-icon welcome-add-page">' . __( 'Add User Profile Fields', 'buddypress' ) . '</a>', esc_url( add_query_arg( array( 'page' => 'bp-profile-setup' ), bp_get_admin_url( 'users.php' ) ) ) ); ?></li> 580 <?php endif; ?> 581 <li><?php printf( '<a href="%s" class="welcome-icon welcome-add-page">' . __( 'Manage User Signups', 'buddypress' ) . '</a>', esc_url( add_query_arg( array( 'page' => 'bp-signups' ), bp_get_admin_url( 'users.php' ) ) ) ); ?></li> 582 <?php if ( bp_is_active( 'activity' ) ) : ?> 583 <li><?php printf( '<a href="%s" class="welcome-icon welcome-add-page">' . __( 'Moderate Activity Streams', 'buddypress' ) . '</a>', esc_url( add_query_arg( array( 'page' => 'bp-activity' ), bp_get_admin_url( 'admin.php' ) ) ) ); ?></li> 584 <?php endif; ?> 585 <?php if ( bp_is_active( 'groups' ) ) : ?> 586 <li><?php printf( '<a href="%s" class="welcome-icon welcome-add-page">' . __( 'Manage Groups', 'buddypress' ) . '</a>', esc_url( add_query_arg( array( 'page' => 'bp-groups' ), bp_get_admin_url( 'admin.php' ) ) ) ); ?></li> 587 <?php endif; ?> 588 <li><?php printf( '<a href="%s" class="welcome-icon welcome-add-page">' . __( 'Repair Data', 'buddypress' ) . '</a>', esc_url( add_query_arg( array( 'page' => 'bp-tools' ), bp_get_admin_url( 'tools.php' ) ) ) ); ?> 589 </li> 590 </ul> 591 </div> 592 <div class="welcome-panel-column welcome-panel-last"> 593 <h4><?php _e( 'Community and Support', 'buddypress' ); ?></h4> 594 <p class="welcome-icon welcome-learn-more" style="margin-right:10px"><?php _e( 'Looking for help? The <a href="https://codex.buddypress.org/">BuddyPress Codex</a> has you covered.', 'buddypress' ) ?></p> 595 <p class="welcome-icon welcome-learn-more" style="margin-right:10px"><?php _e( 'Can’t find what you need? Stop by <a href="https://buddypress.org/support/">our support forums</a>, where active BuddyPress users and developers are waiting to share tips and more.', 'buddypress' ) ?></p> 596 </div> 597 </div> 598 </div> 599 </div> 600 601 <?php endif; ?> 602 603 <div class="bp-features-section"> 604 605 <h3 class="headline-title"><?php esc_html_e( 'For Developers & Site Builders', 'buddypress' ); ?></h3> 606 607 <div class="bp-feature"> 608 <span class="dashicons dashicons-groups" aria-hidden="true"></span> 609 <h4 class="feature-title"><?php esc_html_e( 'Edit Group Slug', 'buddypress' ); ?></h4> 610 <p><?php esc_html_e( 'Allow administrators to change group names and permalinks. Navigate to the Groups screen in the wp-admin dashboard, click on the Edit link under the Group name, and adjust as needed.', 'buddypress' ); ?></p> 611 </div> 612 613 <div class="bp-feature opposite"> 614 <span class="dashicons dashicons-admin-users" aria-hidden="true"></span> 615 <h4 class="feature-title"><?php esc_html_e( 'Improve accessibility of Extended Profile Fields', 'buddypress' ); ?></h4> 616 <p><?php esc_html_e( 'Related form fields are grouped together in fieldsets and all interactive form controls are associated with necessary ARIA states and properties.', 'buddypress' ); ?></p> 617 </div> 618 619 <div class="bp-feature"> 620 <span class="dashicons dashicons-email" aria-hidden="true"></span> 621 <h4 class="feature-title"><?php esc_html_e( 'Send group invitation only once per user', 'buddypress' ); ?></h4> 622 <p><?php esc_html_e( 'Prevent duplicate group invitations from being sent to a user by double-checking if a group invitation has already been sent to that user.', 'buddypress' ); ?></p> 623 </div> 624 625 <div class="bp-feature opposite"> 626 <span class="dashicons dashicons-testimonial" aria-hidden="true"></span> 627 <h4 class="feature-title"><?php esc_html_e( 'Tooltips Usable for All Devices', 'buddypress' ); ?></h4> 628 629 <p><?php esc_html_e( 'Replaced HTML title attributes with tooltips which provide additional information and visual cues where needed on mouse hover and keyboard focus events.', 'buddypress' ); 630 ?></p> 631 </div> 632 633 </div> 634 635 <div class="bp-changelog-section"> 636 637 <h3 class="changelog-title"><?php esc_html_e( 'More under the hood …', 'buddypress' ); ?></h3> 638 <div class="bp-changelog bp-three-column"> 639 <div class="bp-column"> 640 <h4 class="title"><?php esc_html_e( 'Better support for private message thread links in emails', 'buddypress' ); ?></h4> 641 <p><?php esc_html_e( 'Redirect non-authenticated users to the login screen and authenticated users to the message linked.', 'buddypress' ); ?></p> 642 </div> 643 <div class="bp-column"> 644 <h4 class="title"><?php esc_html_e( 'Compatibility with Bootstrap themes', 'buddypress' ); ?></h4> 645 <p><?php esc_html_e( 'Removed issues with BuddyPress-generated content being hidden in the Groups loop and Activity comments in Bootstrap themes.', 'buddypress' ); ?></p> 646 </div> 647 648 <div class="bp-column"> 649 <h4 class="title"><?php esc_html_e( 'Improve profile image uploads', 'buddypress' ); ?></h4> 650 <p><?php esc_html_e( 'Fixed issues with uploading in iOS Safari and uploading files with non-ASCII filenames.', 'buddypress' ); ?></p> 651 </div> 652 </div> 653 654 <div class="bp-changelog bp-three-column"> 655 <div class="bp-column"> 656 <h4 class="title"><?php esc_html_e( 'URL compatibility for LightSpeed Servers', 'buddypress' ); ?></h4> 657 <p><?php 658 /* translators: %s: trailingslashit() */ 659 printf( __( 'Audited and changed template link functions to use %s where necessary.', 'buddypress' ), 660 '<code>trailingslashit()</code>' ); 661 ?></p> 662 </div> 663 <div class="bp-column"> 664 <h4 class="title"><?php esc_html_e( 'Template Packs UI in BuddyPress > Settings.', 'buddypress' ); ?></h4> 665 <p><?php esc_html_e( 'Register your new BuddyPress theme package and allow the user to select which template pack to use.', 'buddypress' ); ?></p> 666 </div> 667 668 <div class="bp-column"> 669 <h4 class="title"><?php 670 /* translators: %s: bp_group_link() */ 671 printf( __( 'New template function %s', 'buddypress' ), 672 '<code>bp_group_link()</code>' ); 673 ?></h4> 674 <p><?php esc_html_e( 'Output a group name as a text hyperlink where appropriate.', 'buddypress' ); ?></p> 675 </div> 676 </div> 677 678 </div> 679 680 <div class="bp-assets"> 681 <p><?php _ex( 'Learn more:', 'About screen, website links', 'buddypress' ); ?> <a href="https://buddypress.org/blog/"><?php _ex( 'News', 'About screen, link to project blog', 'buddypress' ); ?></a> • <a href="https://buddypress.org/support/"><?php _ex( 'Support', 'About screen, link to support site', 'buddypress' ); ?></a> • <a href="https://codex.buddypress.org/"><?php _ex( 'Documentation', 'About screen, link to documentation', 'buddypress' ); ?></a> • <a href="https://bpdevel.wordpress.com/"><?php _ex( 'Development Blog', 'About screen, link to development blog', 'buddypress' ); ?></a></p> 682 683 <p><?php _ex( 'Twitter:', 'official Twitter accounts:', 'buddypress' ); ?> <a href="https://twitter.com/buddypress/"><?php _ex( 'BuddyPress', '@buddypress twitter account name', 'buddypress' ); ?></a> • <a href="https://twitter.com/bptrac/"><?php _ex( 'Trac', '@bptrac twitter account name', 'buddypress' ); ?></a> • <a href="https://twitter.com/buddypressdev/"><?php _ex( 'Development', '@buddypressdev twitter account name', 'buddypress' ); ?></a></p> 684 </div> 685 548 testing 686 549 </div> 687 550
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)