Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/07/2021 05:22:42 PM (4 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-core/bp-core-functions.php

    r13118 r13140  
    32713271    }
    32723272
    3273     // register_term_meta() was introduced in WP 4.9.8.
    3274     if ( ! bp_is_running_wp( '4.9.8' ) ) {
    3275         $args['object_subtype'] = $type_tax;
    3276 
    3277         return register_meta( 'term', $meta_key, $args );
    3278     }
    3279 
    32803273    return register_term_meta( $type_tax, $meta_key, $args );
    32813274}
     
    36853678    );
    36863679
    3687     if ( bp_is_running_wp( '4.9.6' ) ) {
    3688         $privacy_policy_url = get_privacy_policy_url();
    3689         if ( $privacy_policy_url ) {
    3690             $footer_text[] = sprintf(
    3691                 '<a href="%s">%s</a>',
    3692                 esc_url( $privacy_policy_url ),
    3693                 esc_html__( 'Privacy Policy', 'buddypress' )
    3694             );
    3695         }
     3680    $privacy_policy_url = get_privacy_policy_url();
     3681    if ( $privacy_policy_url ) {
     3682        $footer_text[] = sprintf(
     3683            '<a href="%s">%s</a>',
     3684            esc_url( $privacy_policy_url ),
     3685            esc_html__( 'Privacy Policy', 'buddypress' )
     3686        );
    36963687    }
    36973688
Note: See TracChangeset for help on using the changeset viewer.