Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/29/2024 06:31:34 PM (3 years ago)
Author:
imath
Message:

Raise WordPress required version to 6.1

  • Do required WP version bumps.
  • Remove WP function/version checks when these were about WP version < 6.1.
  • Init the 14.0.0 deprecated functions file.
  • Update the GH PHP Unit Action and remove the 6.0 wp-phpunit/wp-phpunit composer package downgrade that was needed when testing WP version < 6.1.

Fixes #9051
Closes https://github.com/buddypress/buddypress/pull/226

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-blocks.php

    r13676 r13718  
    156156        return $editor_settings;
    157157}
    158 
    159 /**
    160  * Select the right `block_editor_settings` filter according to WP version.
    161  *
    162  * @since 8.0.0
    163  */
    164 function bp_block_init_editor_settings_filter() {
    165         if ( function_exists( 'get_block_editor_settings' ) ) {
    166                 add_filter( 'block_editor_settings_all', 'bp_blocks_editor_settings' );
    167         } else {
    168                 add_filter( 'block_editor_settings', 'bp_blocks_editor_settings' );
    169         }
    170 }
    171 add_action( 'bp_init', 'bp_block_init_editor_settings_filter' );
     158add_filter( 'block_editor_settings_all', 'bp_blocks_editor_settings' );
    172159
    173160/**
Note: See TracChangeset for help on using the changeset viewer.