Skip to:
Content

BuddyPress.org

Ticket #8605: 8605.patch

File 8605.patch, 13.1 KB (added by imath, 4 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 85b4432c2..4f850991d 100644
    class BP_Admin { 
    757757                                <div class="bp-hello-content">
    758758                                        <div id="dynamic-content"></div>
    759759                                        <div id="top-features">
    760                                                 <h2><?php esc_html_e( 'It’s all about Widget Blocks!', 'buddypress' ); ?></h2>
     760                                                <h2><?php esc_html_e( 'Site Membership Requests', 'buddypress' ); ?></h2>
    761761                                                <figure class="bp-hello-aligncenter">
    762                                                         <img src="<?php echo esc_url( buddypress()->plugin_url . 'bp-core/images/latest-activities.jpg' ); ?>" alt="<?php esc_attr_e( 'Illustration showing the Latest Activities Widget Block.', 'buddypress' ); ?>" />
     762                                                        <img src="<?php echo esc_url( 'https://cldup.com/phT2z5-C6W.png' ); ?>" alt="<?php esc_attr_e( 'Illustration showing the Site Membership Requests list.', 'buddypress' ); ?>" />
    763763                                                </figure>
    764764                                                <p>
    765                                                         <?php esc_html_e( 'WordPress 5.8 is right around the corner and debuts a brand new way to manage widgets: the Widget Block Editor. With BuddyPress 9.0.0, we have introduced 10 new BuddyPress Blocks, so you can continue to use your favorite BP Widgets with the new WP Block approach.', 'buddypress' ); ?>
     765                                                        <?php esc_html_e( 'Take control of your site’s membership! With site membership requests, new in BuddyPress 10.0.0, administrators can significantly reduce the number of spam users trolling their sites.', 'buddypress' ); ?>
    766766                                                </p>
    767767                                                <p>
    768                                                         <?php esc_html_e( 'The new BP Widget Blocks are simply Legacy Widgets we’ve rebuilt as BP Blocks, which means you can also access them in the Block Editor for use in your posts or pages!', 'buddypress' ); ?>
     768                                                        <?php esc_html_e( 'When requests are enabled, visitors may submit a membership request, which must be manually approved by a site administrator.', 'buddypress' ); ?>
     769                                                        <?php
     770                                                        printf(
     771                                                                /* translators: %s is the placeholder for the link to the BuddyPress Codex documentation page. */
     772                                                                esc_html__( '%s about this feature.', 'buddypress' ),
     773                                                                sprintf(
     774                                                                        '<a href="%1$s">%2$s</a>',
     775                                                                        esc_url( 'https://codex.buddypress.org/administrator-guide/alternative-registration-workflows/#membership-requests-available-in-buddypress-10' ),
     776                                                                        esc_html__( 'Read more', 'buddypress' )
     777                                                                )
     778                                                        );
     779                                                        ?>
     780                                                </p>
     781
     782                                                <hr class="bp-hello-divider"/>
     783
     784                                                <h2><?php esc_html_e( 'More engaging logging activities', 'buddypress' ); ?></h2>
     785                                                <p>
     786                                                        <?php esc_html_e( 'These simple activities about specific user interactions or events (e.g.: you and me are now friends) are more visually attractive to improve user engagement in your community.', 'buddypress' ); ?>
    769787                                                </p>
    770788                                                <figure class="bp-hello-aligncenter">
    771                                                         <img src="<?php echo esc_url( buddypress()->plugin_url . 'bp-core/images/bp-widget-blocks.jpg' ); ?>" alt="<?php esc_attr_e( 'Illustration showing BP Blocks collection.', 'buddypress' ); ?>" />
     789                                                        <img src="<?php echo esc_url( 'https://cldup.com/h8r6HSMO4k.png' ); ?>" alt="<?php esc_attr_e( 'Illustration showing the new avatar secondary activity.', 'buddypress' ); ?>" />
    772790                                                </figure>
    773791                                                <p>
    774                                                         <em><?php esc_html_e( 'PS: Have you noticed that the icons for BuddyPress Blocks are now bright red?', 'buddypress' ); ?></em>
     792                                                        <?php esc_html_e( 'The most impressive new activity is that which is generated when a user updates their profile photo: it will include the profile photo that spurred the creation of the activity item, even if it has been updated since.', 'buddypress' ); ?>
    775793                                                </p>
    776                                                 <h3>
    777                                                         <?php
    778                                                         printf(
    779                                                                 /* Translators: %s is a smiling face with sunglasses emoji. */
    780                                                                 esc_html__( 'Convert a Legacy Widget into a Block Widget in two clicks %s', 'buddypress' ),
    781                                                                 wp_staticize_emoji( '😎' )
    782                                                         );
    783                                                         ?>
    784                                                 </h3>
     794
     795                                                <hr class="bp-hello-divider"/>
     796
     797                                                <h2><?php esc_html_e( 'Administration: improved BuddyPress management experience', 'buddypress' ); ?></h2>
    785798                                                <figure class="bp-hello-aligncenter">
    786                                                         <img src="<?php echo esc_url( buddypress()->plugin_url . 'bp-core/images/legacy-widget-to-block.jpg' ); ?>" alt="<?php esc_attr_e( 'Illustration showing the Legacy Widget to Widget Block transformation.', 'buddypress' ); ?>" />
     799                                                        <img src="<?php echo esc_url( 'https://cldup.com/6ydVzamAqn.png' ); ?>" alt="<?php esc_attr_e( 'Illustration showing the BuddyPress settings screen.', 'buddypress' ); ?>" />
    787800                                                </figure>
    788801                                                <p>
    789                                                         <?php esc_html_e( 'As shown in the image above, it’s very easy to transform a Widget into a Block. Your existing Widget settings will automagically be imported into your shiny, new BP Block.', 'buddypress' ); ?>
     802                                                        <?php esc_html_e( 'As shown in the image above, the BuddyPress administration screens are now using the layout WordPress uses for its tabbed administration screens.', 'buddypress' ); ?>
    790803                                                </p>
     804                                                <figure class="bp-hello-aligncenter">
     805                                                        <img src="<?php echo esc_url( 'https://cldup.com/mVlztez7Bv.png' ); ?>" alt="<?php esc_attr_e( 'Illustration showing the Edit Pages screen.', 'buddypress' ); ?>" />
     806                                                </figure>
    791807                                                <p>
    792                                                         <?php esc_html_e( 'NB: Creating a BP Block for each existing BP Legacy Widget marks the first step toward the progressive retirement of these tiny pieces of BuddyPress content.', 'buddypress' ); ?>
     808                                                        <?php esc_html_e( 'Knowing the WordPress pages BuddyPress uses for its front-end directory screens is easier, a status information informs you the role of BuddyPress pages.', 'buddypress' ); ?>
    793809                                                </p>
    794810
    795811                                                <hr class="bp-hello-divider"/>
    796812
    797                                                 <h2><?php esc_html_e( 'The BP REST API:  Improved endpoints and a new one!', 'buddypress' ); ?></h2>
     813                                                <h2><?php esc_html_e( 'Ready for Twenty Twenty-Two!', 'buddypress' ); ?></h2>
    798814                                                <p>
    799                                                         <?php esc_html_e( 'This BuddyPress release was built in a short time frame to be ready for the release of WordPress 5.8.', 'buddypress' ); ?>
     815                                                        <?php esc_html_e( 'WordPress 5.9 will introduce Full Site Editing featuring the new default theme Twenty Twenty-Two.', 'buddypress' ); ?>
    800816                                                </p>
    801817                                                <p>
    802                                                         <?php esc_html_e( 'While doing the work on BP Widget Blocks, we’ve also manipulated many of our REST API endpoints and took this opportunity to improve several of them. We’re also introducing a new Sitewide Notices endpoint to allow site admins to create, edit, or delete notices and let all of your users fetch the active notice.', 'buddypress' ); ?>
     818                                                        <?php esc_html_e( 'The needed adjustments to our BP Theme Compatibility API were made so that you can enjoy this amazing feature making sure the BuddyPress generated content integrates optimally within themes supporting it.', 'buddypress' ); ?>
    803819                                                </p>
    804820
    805821                                                <hr class="bp-hello-divider"/>
    806822
    807823                                                <h2><?php esc_html_e( 'Under the hood', 'buddypress' ); ?></h2>
    808824                                                <p>
    809                                                         <?php esc_html_e( '9.0.0 comes with fewer changes than most of our releases but includes fixes for issues which appeared in 8.0.0 and BP Nouveau Template Pack improvements.', 'buddypress' ); ?>
     825                                                        <?php esc_html_e( '10.0.0 comes with more than 70 changes including performance improvements to the BP Notifications, the BP Activity & the BP Signups API; Date Queries support for Members, Groups and Sites loops; improved inline documentation/translators comments and code formatting.', 'buddypress' ); ?>
    810826                                                        <?php esc_html_e( 'Click on the "Changelog" tab to discover them all!', 'buddypress' ); ?>
    811827                                                </p>
    812828                                                <figure class="bp-hello-aligncenter">
    class BP_Admin { 
    850866                                                <?php
    851867                                                printf(
    852868                                                        /* translators: 1: heart dashicons. 2: BP Credits screen url. 3: number of BuddyPress contributors to this version. */
    853                                                         _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>.', 24, 'buddypress' ),
     869                                                        _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>.', 38, 'buddypress' ),
    854870                                                        '<span class="dashicons dashicons-heart"></span>',
    855871                                                        esc_url( bp_get_admin_url( 'admin.php?page=bp-credits' ) ),
    856                                                         number_format_i18n( 24 )
     872                                                        number_format_i18n( 38 )
    857873                                                );
    858874                                                ?>
    859875                                        </p>
    class BP_Admin { 
    10141030                                        Varun Dubey</a>
    10151031                                </li>
    10161032                                <li class="wp-person" id="wp-person-sbrajesh">
    1017                                         <a class="web" href="https://profiles.wordpress.org/sbrajesh/"><img alt="" class="gravatar" src="//gravatar.com/avatar/2106622ee90d53d15ac1402806616aca?s=120">
    1018                                         Brajesh Singh</a>
     1033                                        <a class="web" href="https://profiles.wordpress.org/oztaser/"><img alt="" class="gravatar" src="//gravatar.com/avatar/06eb4dd13c0113bf826968ae16a13e52?s=120">
     1034                                        Adil Öztaşer</a>
    10191035                                </li>
    10201036                        </ul>
    10211037
    class BP_Admin { 
    10291045                                ?>
    10301046                        </h3>
    10311047                        <p class="wp-credits-list">
     1048                                <a href="https://github.com/Achilles4400">Achilles4400</a>,
     1049                                <a href="https://profiles.wordpress.org/oztaser/">Adil Öztaşer (oztaser)</a>,
    10321050                                <a href="https://profiles.wordpress.org/boonebgorges/">Boone B Gorges (boonebgorges)</a>,
    1033                                 <a href="https://profiles.wordpress.org/sbrajesh/">Brajesh Singh (sbrajesh)</a>,
    1034                                 <a href="https://profiles.wordpress.org/dcavins/">David Cavins (dcavins)</a>,
     1051                                <a href="https://profiles.wordpress.org/needle/">Christian Wach (needle)</a>,
     1052                                <a href="https://profiles.wordpress.org/comminski/">comminski</a>,
    10351053                                <a href="https://profiles.wordpress.org/dancaragea/">Dan Caragea (dancaragea)</a>,
    1036                                 <a href="https://profiles.wordpress.org/ianbarnes/">Ian Barnes (ianbarnes)</a>,
    1037                                 <a href="https://profiles.wordpress.org/nobnob/">Javier Esteban (nobnob)</a>,
     1054                                <a href="https://profiles.wordpress.org/dcavins/">David Cavins (dcavins)</a>,
     1055                                <a href="https://profiles.wordpress.org/dhavalkasvala/">Dhaval Kasavala (dhavalkasvala)</a>,
     1056                                <a href="https://profiles.wordpress.org/dd32/">Dion Hulse (dd32)</a>,
     1057                                <a href="https://github.com/durdenx">durdenx</a>,
     1058                                <a href="https://profiles.wordpress.org/ellucinda/">ellucinda</a>,
     1059                                <a href="https://profiles.wordpress.org/vanpop/">Evan Stein (vanpop)</a>,
     1060                                <a href="https://profiles.wordpress.org/garyj/">Gary Jones (garyj)</a>,
     1061                                <a href="https://profiles.wordpress.org/hasanuzzamanshamim/">Hasanuzzaman (hasanuzzamanshamim)</a>,
     1062                                <a href="https://github.com/jakubrak">jakubrak</a>,
     1063                                <a href="https://profiles.wordpress.org/jean-david/">Jean-David Daviet (Jean-David)</a>,
     1064                                <a href="https://profiles.wordpress.org/jenfraggle/">Jennifer Burnett (jenfraggle)</a>
    10381065                                <a href="https://profiles.wordpress.org/johnjamesjacoby/">John James Jacoby (johnjamesjacoby)</a>,
    1039                                 <a href="https://profiles.wordpress.org/leahkoerper/">leahkoerper</a>,
    1040                                 <a href="https://profiles.wordpress.org/marbaque/">marbaque</a>,
     1066                                <a href="https://profiles.wordpress.org/josett225/">josett225</a>,
     1067                                <a href="https://profiles.wordpress.org/ketan_chawda/">Ketan Chawda (ketan_chawda)</a>,
     1068                                <a href="https://profiles.wordpress.org/konnektiv/">konnektiv</a>,
     1069                                <a href="https://profiles.wordpress.org/offereins/">Laurens Offereins (Offereins)</a>,
     1070                                <a href="https://profiles.wordpress.org/magland/">magland</a>,
     1071                                <a href="https://profiles.wordpress.org/mandro/">mandro</a>,
     1072                                <a href="https://github.com/marioshtika">marioshtika</a>,
    10411073                                <a href="https://profiles.wordpress.org/markscottrobson/">Mark Robson (markscottrobson)</a>,
    10421074                                <a href="https://profiles.wordpress.org/imath/">Mathieu Viet (imath)</a>,
    1043                                 <a href="https://profiles.wordpress.org/modemlooper/">modemlooper</a>,
    10441075                                <a href="https://profiles.wordpress.org/niftythree/">Nifty (niftythree)</a>,
     1076                                <a href="https://profiles.wordpress.org/nunks/">nunks</a>,
     1077                                <a href="https://profiles.wordpress.org/oddev56/">oddev56</a>,
    10451078                                <a href="https://profiles.wordpress.org/DJPaul/">Paul Gibbs (DJPaul)</a>,
    1046                                 <a href="https://profiles.wordpress.org/nekojonez/">Pieterjan Deneys (nekojonez)</a>,
    10471079                                <a href="https://profiles.wordpress.org/r-a-y/">r-a-y</a>,
    10481080                                <a href="https://profiles.wordpress.org/espellcaste/">Renato Alves (espellcaste)</a>,
    1049                                 <a href="https://profiles.wordpress.org/shanebp">shanebp</a>,
    1050                                 <a href="https://profiles.wordpress.org/shawfactor/">shawfactor</a>,
    1051                                 <a href="https://profiles.wordpress.org/slaffik/">Slava Abakumov (slaffik)</a>,
    1052                                 <a href="https://profiles.wordpress.org/netweb/">Stephen Edgar (netweb)</a>,
    1053                                 <a href="https://profiles.wordpress.org/tamarazambrana/">tamarazambrana</a>,
    1054                                 <a href="https://github.com/tkserver">TKServer</a>,
    1055                                 <a href="https://profiles.wordpress.org/vapvarun/">Varun Dubey (vapvarun)</a>.
     1081                                <a href="https://profiles.wordpress.org/rigsbyx/">rigsbyx</a>,
     1082                                <a href="https://profiles.wordpress.org/thomaslhotta/">thomaslhotta</a>,
     1083                                <a href="https://profiles.wordpress.org/vapvarun/">Varun Dubey (vapvarun)</a>,
     1084                                <a href="https://profiles.wordpress.org/venutius/">venutius</a>,
     1085                                <a href="https://profiles.wordpress.org/yesbutmaybeno/">yesbutmaybeno</a>.
    10561086                        </p>
    10571087
    10581088                        <h3 class="wp-people-group"><?php esc_html_e( 'With our thanks to these Open Source projects', 'buddypress' ); ?></h3>