Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/07/2021 05:22:42 PM (3 years ago)
Author:
imath
Message:

Raise WordPress required version to 5.4

BuddyPress 10.0.0 will require at least WordPress 5.4. The BP Development team took this decision on October 6 (2021) according to our guideline about WordPress version compatibility.

  • Add WordPress 5.4 to the WordPress versions tested into our PHPUnit GitHub action.
  • Deprecate the bp.apiRequest script which was introduced to polyfill the wp.apiRequest one. Plugin developers are encouraged to directly use the wp.apiRequest script. Please note the bp.apiRequest script will be completely removed in a next major BuddyPress version.
  • Deprecate the bp_insert_site_hook() and bp_delete_site_hook() function which were introduced to make sure to use the best hook according to the installed WordPress version when creating a new site or deleting an existing one.

At least one more commit is required to finish this "raising" process, as BP Blocks do not need anymore the CompatibiltyServerSideRender component we introduced to preserve back compatibility with WordPress version older than 5.3.

Props oztaser

See #8571

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-blogs/bp-blogs-functions.php

    r13108 r13140  
    575575 *
    576576 * Fires when a site's details are updated, which generally happens when
    577  * editing a site under "Network Admin > Sites". Prior to WP 4.9, the
    578  * correct hook was 'refresh_blog_details'; afterward, 'clean_site_cache'.
     577 * editing a site under "Network Admin > Sites".
    579578 *
    580579 * @since 2.3.0
     
    585584    bp_blogs_delete_blogmeta( (int) $site_id, 'url' );
    586585}
    587 
    588 if ( bp_is_running_wp( '4.9.0' ) ) {
    589     add_action( 'clean_site_cache', 'bp_blogs_delete_url_blogmeta' );
    590 } else {
    591     add_action( 'refresh_blog_details', 'bp_blogs_delete_url_blogmeta' );
    592 }
     586add_action( 'clean_site_cache', 'bp_blogs_delete_url_blogmeta' );
    593587
    594588/**
Note: See TracChangeset for help on using the changeset viewer.