Ticket #8468: 8468.patch
File 8468.patch, 20.4 KB (added by , 3 years ago) |
---|
-
src/bp-core/classes/class-bp-admin.php
diff --git src/bp-core/classes/class-bp-admin.php src/bp-core/classes/class-bp-admin.php index bbf945471..0220ec7de 100644
class BP_Admin { 668 668 <div class="bp-hello-content"> 669 669 <div id="dynamic-content"></div> 670 670 <div id="top-features"> 671 <h2><?php esc_html_e( 'Manage Member Types and Group Types right from your WordPress Dashboard.', 'buddypress' ); ?></h2> 671 <h2><?php esc_html_e( 'Your members are the best people to make your community grow.', 'buddypress' ); ?></h2> 672 <p> 673 <?php esc_html_e( 'That\’s why we gave you the opportunity to let them invite new users to join your site.', 'buddypress' ); ?> 674 <?php esc_html_e( 'Whether registrations are opened or not you can activate this great new opt-in feature from your site\'s BuddyPress settings to power them with a new capability: contribute to the growth of your community site.', 'buddypress' ); ?> 675 </p> 672 676 <figure class="bp-hello-aligncenter"> 673 <img src="<?php echo esc_url( buddypress()->plugin_url . 'bp-core/images/bp-types-illustration.png' ); ?>" alt="<?php esc_attr_e( 'Illustration showing how to access to the BP Types Admin areas.', 'buddypress' ); ?>" /> 677 <img src="https://cldup.com/oCuFxADe-4.png" alt="<?php esc_attr_e( 'Illustration showing the Members Invite Screen.', 'buddypress' ); ?>" /> 678 </figure> 679 <p><?php esc_html_e( 'Once activated, each one of them will be able to send new Member Invitation emails & manage the pending ones directly from their profile area.', 'buddypress' ); ?> 680 <figure class="bp-hello-aligncenter"> 681 <img src="https://cldup.com/9Z2bX7haMj.png" alt="<?php esc_attr_e( 'Illustration showing the Members Invite Screen.', 'buddypress' ); ?>" /> 674 682 </figure> 675 683 <p> 684 <?php esc_html_e( 'You keep the control of everything thanks to the 2 new BuddyPress tools we added to your dashboard: the invitations management tool & the opt-outs management one.', 'buddypress' ); ?> 676 685 <?php esc_html_e( 'Playing with BP Types just became much easier! The Member Types and Group Types were primarily introduced in BuddyPress as features for advanced users, just like the WordPress Custom Post Type feature.', 'buddypress' ); ?> 677 686 <?php printf( 678 /* translators: %s is the placeholder for the link to the BP Types Admin developer note. */ 679 esc_html__( 'Thanks to the two new %s, adding, editing and deleting Member & Group Types has never been so easy!', 'buddypress' ), 680 sprintf( 681 '<a href="%1$s">%2$s</a>', 682 esc_url( 'https://bpdevel.wordpress.com/2020/09/21/bp-types-admin-ui/' ), 683 esc_html__( 'WordPress Administration Screens', 'buddypress' ) 684 ) 685 ); ?> 686 <?php esc_html_e( 'Now you can set up BP Types using custom code or by simply using the Administration interfaces.', 'buddypress' ); ?> 687 </p> 688 <h3><?php esc_html_e( 'Multiple Member Type assignment.', 'buddypress' ); ?></h3> 689 <p> 690 <?php printf( 691 /* translators: %s is the placeholder for the link to the BP Types Admin developer note. */ 692 esc_html__( 'As we were pretty hot on the subject, we also improved Member Types assignment. You can now %s to users from their extended profile in the WordPress Dashboard.', 'buddypress' ), 687 /* translators: %s is the placeholder for the link to the BP Members Invitations developer note. */ 688 esc_html__( 'Read more about the feature in this %s.', 'buddypress' ), 693 689 sprintf( 694 690 '<a href="%1$s">%2$s</a>', 695 esc_url( 'https://bpdevel.wordpress.com/ 2020/10/26/assigning-multiple-member-types-to-a-user/' ),696 esc_html__( ' add more than one member type', 'buddypress' )691 esc_url( 'https://bpdevel.wordpress.com/' ), 692 esc_html__( 'developer note', 'buddypress' ) 697 693 ) 698 694 ); ?> 699 695 </p> 700 696 701 697 <hr class="bp-hello-divider"/> 702 698 703 <h2><?php esc_html_e( 'The BP Blocks category now includes 5 blocks!', 'buddypress' ); ?></h2> 704 <figure class="bp-hello-aligncenter"> 705 <img src="<?php echo esc_url( buddypress()->plugin_url . 'bp-core/images/bp-new-blocks.png' ); ?>" alt="<?php esc_attr_e( 'Illustration showing the BuddyPress Blocks category inside the Block Editor Inserter.', 'buddypress' ); ?>" /> 706 </figure> 699 <h2><?php esc_html_e( 'Improved registration experience.', 'buddypress' ); ?></h2> 707 700 <p> 708 <?php esc_html_e( '3 new BP Blocks are now available via your WordPress Editor.', 'buddypress' ); ?> 709 <?php esc_html_e( 'From the BuddyPress blocks category of the WordPress Block Inserter, you can pick a BP Block to feature a list of members, a list of groups or embed a public BuddyPress Activity into your post or page.', 'buddypress' ); ?> 701 <?php esc_html_e( 'First, you can select any xProfile fields of any xProfile field groups to use into your site\'s registration form.', 'buddypress' ); ?> 710 702 <?php printf( 711 /* translators: %s is the placeholder for the link to the BP Blocks developer note. */712 esc_html__( ' Read more about it inthis %s.', 'buddypress' ),703 /* translators: %s is the placeholder for the link to the Selectable Signup Fields developer note. */ 704 esc_html__( 'Learn more about it reading this %s.', 'buddypress' ), 713 705 sprintf( 714 706 '<a href="%1$s">%2$s</a>', 715 esc_url( 'https://bpdevel.wordpress.com/202 0/10/14/three-new-blocks-to-expect-in-buddypress-7-0-0/' ),716 esc_html__( 'develop mentnote', 'buddypress' )707 esc_url( 'https://bpdevel.wordpress.com/2021/05/06/selectable-xprofile-sign-up-fields-in-8-0-0/' ), 708 esc_html__( 'developer note', 'buddypress' ) 717 709 ) 718 710 ); ?> 719 711 </p> 720 721 <hr class="bp-hello-divider"/> 722 723 <h2><?php esc_html_e( 'Get the best of the BP REST API improvements!', 'buddypress' ); ?></h2> 724 <figure class="bp-hello-alignright"> 725 <div class="dashicons dashicons-rest-api big"></div> 712 <figure class="bp-hello-aligncenter"> 713 <img src="https://cldup.com/N8GRe-oox6.png" alt="<?php esc_attr_e( 'Illustration showing the xProfile Administration Screen.', 'buddypress' ); ?>" /> 726 714 </figure> 727 715 <p> 716 <?php esc_html_e( 'Second, if your site needs users to accept specific rules such as terms of service or a code of conduct, you can now enjoy the new Checkbox Acceptance xProfile Field type to collect their agreements.', 'buddypress' ); ?> 728 717 <?php printf( 729 /* translators: %s is the placeholder for the link to the BP REST API documentation. */730 esc_html__( 'Th e %s has been updated according to the latest improvements we’ve brought to the BuddyPress REST API.', 'buddypress' ),718 /* translators: %s is the placeholder for the link to the Checkbox Acceptance field type developer note. */ 719 esc_html__( 'This %s will learn you more about it.', 'buddypress' ), 731 720 sprintf( 732 721 '<a href="%1$s">%2$s</a>', 733 esc_url( 'https:// developer.buddypress.org/bp-rest-api/' ),734 esc_html__( ' Developer documentation', 'buddypress' )722 esc_url( 'https://bpdevel.wordpress.com/2021/05/05/new-xprofile-field-type-checkbox-acceptance-will-be-introduced-in-buddypress-8-0-0/' ), 723 esc_html__( 'developer note', 'buddypress' ) 735 724 ) 736 725 ); ?> 737 726 </p> 727 <figure class="bp-hello-aligncenter"> 728 <img src="https://cldup.com/vrEPSd6qAR.png" alt="<?php esc_attr_e( 'Illustration showing an example of Checkbox Acceptance xProfile field type display.', 'buddypress' ); ?>" /> 729 </figure> 738 730 <p> 739 <?php esc_html_e( 'To name two: get the groups the logged in user is a member of, and create a blog when BuddyPress is activated on a network of WordPress sites.', 'buddypress' ); ?> 731 <?php esc_html_e( 'Third, once users activated their account, a welcome email will be sent to them to help them do their first steps into your community site.', 'buddypress' ); ?> 732 <?php esc_html_e( 'You can customize the content of this email from the Emails menu of your WordPress dashboard', 'buddypress' ); ?> 740 733 <?php printf( 741 /* translators: %s is the placeholder for the link to the BP REST APIdeveloper note. */742 esc_html__( ' Read this %s to learn about all the others.', 'buddypress' ),734 /* translators: %s is the placeholder for the link to the Welcome Email developer note. */ 735 esc_html__( 'Have a look to this %s to know more about it.', 'buddypress' ), 743 736 sprintf( 744 737 '<a href="%1$s">%2$s</a>', 745 esc_url( 'https://bpdevel.wordpress.com/202 0/11/14/buddypress-rest-api-whats-new-in-7-0-0/' ),746 esc_html__( 'develop mentnote', 'buddypress' )738 esc_url( 'https://bpdevel.wordpress.com/2021/05/24/8-0-0-will-include-a-bp-email-to-welcome-new-community-members/' ), 739 esc_html__( 'developer note', 'buddypress' ) 747 740 ) 748 741 ); ?> 749 742 </p> 750 743 751 744 <hr class="bp-hello-divider"/> 752 745 753 <h2><?php esc_html_e( ' BP Nouveau is ready for Twenty Twenty-One', 'buddypress' ); ?></h2>746 <h2><?php esc_html_e( 'WP xProfile field types.', 'buddypress' ); ?></h2> 754 747 <p> 755 <?php esc_html_e( 'You love the latest default WordPress Theme, so do we!', 'buddypress' ); ?> 756 <?php esc_html_e( 'It’s important for us to make sure the BP Nouveau template pack looks great in the default themes included in the WordPress package.', 'buddypress' ); ?> 757 <?php esc_html_e( 'This is the first of the many improvements we are bringing to our default Template Pack.', 'buddypress' ); ?> 748 <?php esc_html_e( 'Two new field types can now be used to include WordPress specific information about the member into xProfile field loops without duplicating data.', 'buddypress' ); ?> 758 749 </p> 759 750 <figure class="bp-hello-aligncenter"> 760 <img src="<?php echo esc_url( buddypress()->plugin_url . 'bp-core/images/bp-nouveau-2021.png' ); ?>" alt="<?php esc_attr_e( 'Screenshot of the BuddyPress Members directory', 'buddypress' ); ?>" /> 761 </figure> 762 763 <hr class="bp-hello-divider"/> 764 765 <h2><?php esc_html_e( 'Improved support for WP CLI.', 'buddypress' ); ?></h2> 766 <figure class="bp-hello-alignleft"> 767 <div class="dashicons dashicons-arrow-right-alt2 big"></div> 751 <img src="https://cldup.com/KuwwsgxWHL.png" alt="<?php esc_attr_e( 'Illustration showing the xProfile Field Edit Screen.', 'buddypress' ); ?>" /> 768 752 </figure> 769 753 <p> 770 <?php esc_html_e( 'WP-CLI is the command-line interface for WordPress. You can update plugins, configure multisite installs, and much more, all without using a web browser.', 'buddypress' ); ?> 771 <?php esc_html_e( 'In 7.0.0, you will be able to use new BuddyPress CLI commands to manage BuddyPress Group Meta, BuddyPress Activity Meta, activate or deactivate the BuddyPress signup feature and create BuddyPress-specific testing code for plugins.', 'buddypress' ); ?> 772 </p> 773 <p> 754 <?php esc_html_e( 'The WP Biography field type let you include the user’s Biographical Info and thanks to the WP Textbox field you can include the first & last name, the Website URL as well as any of the custom contact methods of your users.', 'buddypress' ); ?> 774 755 <?php printf( 775 /* translators: %s is the placeholder for the link to the WP BP CLIdeveloper note. */776 esc_html__( ' Discover more about it fromthis %s.', 'buddypress' ),756 /* translators: %s is the placeholder for the link to the WP xProfile Field Type developer note. */ 757 esc_html__( 'Read more about it in this %s.', 'buddypress' ), 777 758 sprintf( 778 759 '<a href="%1$s">%2$s</a>', 779 esc_url( 'https://bpdevel.wordpress.com/202 0/10/09/wp-cli-buddypress-2-0/' ),760 esc_url( 'https://bpdevel.wordpress.com/2021/03/24/wordpress-xprofile-field-types/' ), 780 761 esc_html__( 'developer note', 'buddypress' ) 781 762 ) 782 763 ); ?> … … class BP_Admin { 786 767 787 768 <h2><?php esc_html_e( 'Under the hood', 'buddypress' ); ?></h2> 788 769 <p> 789 <?php esc_html_e( '7.0.0 includes more than 65 changes to improve your BuddyPress experience as users, and as contributors to our project; click on the “Changelog” tab to discover them all!', 'buddypress' ); ?> 770 <?php esc_html_e( '8.0.0 includes more than 45 changes to improve the Activity component, BP Nouveau Template pack, the BP REST API and many more components and features.', 'buddypress' ); ?> 771 <?php esc_html_e( 'Click on the "Changelog" tab to discover them all!', 'buddypress' ); ?> 790 772 </p> 791 773 <figure class="bp-hello-aligncenter"> 792 774 <div class="dashicons dashicons-buddicons-buddypress-logo big"></div> … … class BP_Admin { 824 806 _n( 'Built with %1$s by <a href="%2$s">%3$d volunteer</a>.', 'Built with %1$s by <a href="%2$s">%3$d volunteers</a>.', 55, 'buddypress' ), 825 807 '<span class="dashicons dashicons-heart"></span>', 826 808 esc_url( bp_get_admin_url( 'admin.php?page=bp-credits' ) ), 827 number_format_i18n( 55)809 number_format_i18n( 31 ) 828 810 ); 829 811 ?> 830 812 </p> … … class BP_Admin { 984 966 ?> 985 967 </h3> 986 968 <ul class="wp-people-group " id="wp-people-group-noteworthy"> 969 <li class="wp-person" id="wp-person-vapvarun"> 970 <a class="web" href="https://profiles.wordpress.org/vapvarun"><img alt="" class="gravatar" src="//gravatar.com/avatar/78a3bf7eb3a1132fc667f96f2631e448?s=120"> 971 Varun Dubey</a> 972 </li> 973 <li class="wp-person" id="wp-person-sbrajesh"> 974 <a class="web" href="https://profiles.wordpress.org/sbrajesh/"><img alt="" class="gravatar" src="//gravatar.com/avatar/2106622ee90d53d15ac1402806616aca?s=120"> 975 Brajesh Singh</a> 976 </li> 987 977 <li class="wp-person" id="wp-person-oztaser"> 988 978 <a class="web" href="https://profiles.wordpress.org/oztaser/"><img alt="" class="gravatar" src="//gravatar.com/avatar/06eb4dd13c0113bf826968ae16a13e52?s=120"> 989 979 Adil Oztaser</a> 990 980 </li> 991 <li class="wp-person" id="wp-person-iamthewebb">992 <a class="web" href="https://profiles.wordpress.org/iamthewebb/"><img alt="" class="gravatar" src="//gravatar.com/avatar/990bac871caf6d6e179b2753226d8f4a?s=120&d=mm">993 IAmTheWebb</a>994 </li>995 <li class="wp-person" id="wp-person-vapvarun">996 <a class="web" href="https://profiles.wordpress.org/vapvarun"><img alt="" class="gravatar" src="//www.gravatar.com/avatar/78a3bf7eb3a1132fc667f96f2631e448?s=120">997 Varun Dubey</a>998 </li>999 981 </ul> 1000 982 1001 983 <h3 class="wp-people-group"> … … class BP_Admin { 1009 991 </h3> 1010 992 <p class="wp-credits-list"> 1011 993 <a href="https://profiles.wordpress.org/oztaser/">Adil Oztaser (oztaser)</a>, 994 <a href="https://profiles.wordpress.org/dontdream/">Andrea Tarantini (dontdream)</a>, 1012 995 <a href="https://profiles.wordpress.org/boonebgorges/">Boone B Gorges (boonebgorges)</a>, 1013 996 <a href="https://profiles.wordpress.org/sbrajesh/">Brajesh Singh (sbrajesh)</a>, 1014 <a href="https://profiles.wordpress.org/ corsky/">corsky</a>,1015 <a href="https://profiles.wordpress.org/ dancaragea/">Dan Caragea (dancaragea)</a>,997 <a href="https://profiles.wordpress.org/needle/">Christian Wach (needle)</a>, 998 <a href="https://profiles.wordpress.org/comminski/">comminski</a>, 1016 999 <a href="https://profiles.wordpress.org/dcavins/">David Cavins (dcavins)</a>, 1017 <a href="https://profiles.wordpress.org/devnik/">devnik</a>, 1018 <a href="https://profiles.wordpress.org/dilipbheda/">Dilip Bheda</a>, 1019 <a href="https://profiles.wordpress.org/dd32/">Dion Hulse (dd32)</a>, 1020 <a href="https://profiles.wordpress.org/dragoeco/">dragoeco</a>, 1021 <a href="https://profiles.wordpress.org/kebbet/">Erik Betshammar (kebbet)</a>, 1022 <a href="https://profiles.wordpress.org/etatus/">etatus</a>, 1023 <a href="https://github.com/ExoGeek/">Didier Saintes (ExoGeek)</a>, 1024 <a href="https://profiles.wordpress.org/f2010525/">诗语 (f2010525)</a>, 1025 <a href="https://profiles.wordpress.org/mamaduka/">George Mamadashvili</a>, 1026 <a href="https://profiles.wordpress.org/mociofiletto/">Giuseppe (mociofiletto)</a>, 1027 <a href="https://profiles.wordpress.org/hareesh-pillai/">Hareesh</a>, 1028 <a href="https://profiles.wordpress.org/iamthewebb/">iamthewebb</a>, 1029 <a href="https://profiles.wordpress.org/nobnob/">Javier Esteban (nobnob)</a>, 1030 <a href="https://profiles.wordpress.org/audrasjb/">Jb Audras (audrasjb)</a>, 1000 <a href="https://github.com/dominic-ks/">dominic-ks</a>, 1001 <a href="https://github.com/edusperoni/">Eduardo Speroni (edusperoni)</a>, 1002 <a href="https://profiles.wordpress.org/hz_i3/">hz_i3</a>, 1031 1003 <a href="https://profiles.wordpress.org/johnjamesjacoby/">John James Jacoby (johnjamesjacoby)</a>, 1032 <a href="https://profiles.wordpress.org/joost-abrahams/">Joost Abrahams (joost-abrahams)</a>, 1033 <a href="https://profiles.wordpress.org/k3690/">k3690</a>, 1034 <a href="https://profiles.wordpress.org/knutsp/">Knut Sparhell (knutsp)</a>, 1035 <a href="https://profiles.wordpress.org/laxman-prajapati/">Laxman Prajapati</a>, 1036 <a href="https://profiles.wordpress.org/lidialab/">Lidia Pellizzaro (lidialab)</a>, 1037 <a href="https://profiles.wordpress.org/marbaque/">marbaque</a>, 1038 <a href="https://github.com/geckse/">Marcel Claus (geckse)</a>, 1039 <a href="https://profiles.wordpress.org/marioshtika/">marioshtika</a>, 1040 <a href="https://profiles.wordpress.org/markscottrobson/">Mark Robson (markscottrobson)</a>, 1004 <a href="https://profiles.wordpress.org/krupajnanda/">Krupa (krupajnanda)</a>, 1005 <a href="https://profiles.wordpress.org/offereins/">Laurens Offereins</a>, 1006 <a href="https://profiles.wordpress.org/mahdiar/">mahdiar</a>, 1041 1007 <a href="https://profiles.wordpress.org/imath/">Mathieu Viet (imath)</a>, 1042 <a href="https://profiles.wordpress.org/mercime/">mercime</a>, 1043 <a href="https://profiles.wordpress.org/immeet94/">Meet Makadia</a>, 1044 <a href="https://profiles.wordpress.org/tw2113/">Michael Beckwith</a>, 1045 <a href="https://profiles.wordpress.org/man4toman/">Morteza Geransayeh (man4toman)</a>, 1046 <a href="https://profiles.wordpress.org/morenolq/">morenolq</a>, 1047 <a href="https://profiles.wordpress.org/n33d/">N33D</a>, 1048 <a href="https://profiles.wordpress.org/oddev56/">oddev56</a>, 1008 <a href="https://profiles.wordpress.org/mattneil/">mattneil</a>, 1009 <a href="https://profiles.wordpress.org/meijioro/">meijioro</a>, 1010 <a href="https://profiles.wordpress.org/modemlooper/">modemlooper</a>, 1049 1011 <a href="https://profiles.wordpress.org/DJPaul/">Paul Gibbs (DJPaul)</a>, 1050 <a href="https://profiles.wordpress.org/walbo/">Petter Walbø Johnsgård (walbo)</a>,1051 <a href="https://profiles.wordpress.org/psmits1567/">Peter Smits (psmits1567)</a>,1052 <a href="https://profiles.wordpress.org/pooja1210/">Pooja N Muchandikar (pooja1210)</a>,1053 <a href="https://profiles.wordpress.org/raruto/">Raruto</a>,1054 1012 <a href="https://profiles.wordpress.org/r-a-y/">r-a-y</a>, 1055 1013 <a href="https://profiles.wordpress.org/espellcaste/">Renato Alves (espellcaste)</a>, 1056 <a href="https://profiles.wordpress.org/scipi/">scipi</a>, 1057 <a href="https://profiles.wordpress.org/scottopolis/">Scott Bolinger (scottopolis)</a>, 1058 <a href="https://profiles.wordpress.org/shanebp/">shanebp</a>, 1059 <a href="https://profiles.wordpress.org/shawfactor/">shawfactor</a>, 1060 <a href="https://profiles.wordpress.org/sjregan/">sjregan</a>, 1014 <a href="https://profiles.wordpress.org/slaffik/">Slava Abakumov (slaffik)</a>, 1015 <a href="https://profiles.wordpress.org/sabernhardt/">Stephen Bernhardt (sabernhardt)</a>, 1061 1016 <a href="https://profiles.wordpress.org/netweb/">Stephen Edgar (netweb)</a>, 1062 <a href="https://profiles.wordpress.org/tharsheblows/">tharsheblows</a>, 1063 <a href="https://profiles.wordpress.org/tobifjellner/">Tor-Bjorn Fjellner (tobifjellner)</a>, 1017 <a href="https://profiles.wordpress.org/studiocrafted/">studiocrafted</a>, 1018 <a href="https://profiles.wordpress.org/sippis/">Timi Wahalahti (sippis)</a>, 1019 <a href="https://profiles.wordpress.org/topher1kenobe/">Topher (topher1kenobe)</a>, 1020 <a href="https://profiles.wordpress.org/utsav72640/">Utsav tilava (utsav72640)</a>, 1064 1021 <a href="https://profiles.wordpress.org/vapvarun/">Varun Dubey (vapvarun)</a>, 1065 <a href="https://profiles.wordpress.org/podporawebu/">wp24.cz (podporawebu)</a>. 1022 <a href="https://profiles.wordpress.org/venutius/">Venutius</a>, 1023 <a href="https://profiles.wordpress.org/weddywood/">WeddyWood</a>. 1066 1024 </p> 1067 1025 1068 1026 <h3 class="wp-people-group"><?php esc_html_e( 'With our thanks to these Open Source projects', 'buddypress' ); ?></h3>