Changeset 13718
- Timestamp:
- 01/29/2024 06:31:34 PM (16 months ago)
- Location:
- trunk
- Files:
-
- 1 added
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.github/workflows/unit-tests.yml
r13684 r13718 25 25 wp_version: '6.4' 26 26 - php: '7.4' 27 wp_version: ' 5.8'27 wp_version: '6.1' 28 28 env: 29 29 WP_ENV_PHP_VERSION: ${{ matrix.php }} … … 66 66 composer-options: "--ignore-platform-reqs" 67 67 68 - name: Adapt WP PHPUnit version for WP < 6.169 run: |70 if [ ${{ env.WP_VERSION }} == '5.8' ]; then71 composer require wp-phpunit/wp-phpunit:6.0 --dev --ignore-platform-reqs72 fi73 74 68 - name: Cache node modules 75 69 uses: actions/cache@v2 -
trunk/bp-loader.php
r13667 r13718 21 21 * Domain Path: /bp-languages/ 22 22 * Requires PHP: 5.6 23 * Requires at least: 5.823 * Requires at least: 6.1 24 24 * Version: 14.0.0-alpha 25 25 */ -
trunk/src/bp-core/admin/bp-core-admin-functions.php
r13660 r13718 1550 1550 ); 1551 1551 } 1552 1553 /** 1554 * Select the right `block_categories` filter according to WP version. 1555 * 1556 * @since 8.0.0 1557 * @since 12.0.0 This category is left for third party plugin but not used anymmore. 1558 * 1559 * @todo deprecate. 1560 */ 1561 function bp_block_init_category_filter() { 1562 if ( function_exists( 'get_default_block_categories' ) ) { 1563 add_filter( 'block_categories_all', 'bp_block_category', 1, 2 ); 1564 } else { 1565 add_filter( 'block_categories', 'bp_block_category', 1, 2 ); 1566 } 1567 } 1568 add_action( 'bp_init', 'bp_block_init_category_filter' ); 1552 add_filter( 'block_categories_all', 'bp_block_category', 1, 2 ); 1569 1553 1570 1554 /** -
trunk/src/bp-core/bp-core-blocks.php
r13676 r13718 156 156 return $editor_settings; 157 157 } 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' ); 158 add_filter( 'block_editor_settings_all', 'bp_blocks_editor_settings' ); 172 159 173 160 /** -
trunk/src/bp-core/bp-core-functions.php
r13705 r13718 4700 4700 function bp_is_large_install() { 4701 4701 // Use the Multisite function if available. 4702 if ( function_exists( 'wp_is_large_network') ) {4702 if ( is_multisite() ) { 4703 4703 $is_large = wp_is_large_network( 'users' ); 4704 4704 } else { … … 4871 4871 11.0, 4872 4872 12.0, 4873 14.0, 4873 4874 ); 4874 4875 -
trunk/src/bp-core/bp-core-template-loader.php
r13686 r13718 465 465 * BuddyPress then needs to use the WordPress template canvas to retrieve the community content. 466 466 */ 467 if ( bp_is_running_wp( '5.9.0', '>=' ) &&wp_is_block_theme() ) {467 if ( wp_is_block_theme() ) { 468 468 $template = ABSPATH . WPINC . '/template-canvas.php'; 469 469 } … … 834 834 */ 835 835 function bp_set_block_theme_compat() { 836 if ( bp_is_running_wp( '5.9.0', '>=' ) &&wp_is_block_theme() && current_theme_supports( 'buddypress' ) ) {836 if ( wp_is_block_theme() && current_theme_supports( 'buddypress' ) ) { 837 837 bp_deregister_template_stack( 'get_stylesheet_directory', 10 ); 838 838 bp_deregister_template_stack( 'get_template_directory', 12 ); -
trunk/src/bp-core/classes/class-bp-attachment.php
r13315 r13718 644 644 ); 645 645 646 /** 647 * Make sure the wp_read_image_metadata function is reachable for the old Avatar UI 648 * or if WordPress < 3.9 (New Avatar UI is not available in this case) 649 */ 646 // Make sure the wp_read_image_metadata function is reachable. 650 647 if ( ! function_exists( 'wp_read_image_metadata' ) ) { 651 648 require_once( ABSPATH . 'wp-admin/includes/image.php' ); -
trunk/src/bp-loader.php
r13667 r13718 21 21 * Domain Path: /bp-languages/ 22 22 * Requires PHP: 5.6 23 * Requires at least: 5.823 * Requires at least: 6.1 24 24 * Version: 14.0.0-alpha 25 25 */ -
trunk/src/bp-templates/bp-nouveau/buddypress-functions.php
r13709 r13718 84 84 $this->directory_nav = new BP_Core_Nav( bp_get_root_blog_id() ); 85 85 $this->is_block_theme = false; 86 87 if ( bp_is_running_wp( '5.9.0', '>=' ) ) { 88 $this->is_block_theme = wp_is_block_theme(); 89 } 86 $this->is_block_theme = wp_is_block_theme(); 90 87 } 91 88 -
trunk/src/bp-templates/bp-nouveau/includes/functions.php
r13652 r13718 1663 1663 } 1664 1664 1665 // `wp_get_global_settings()` has been introduced in WordPress 5.91666 if ( function_exists( 'wp_get_global_settings') ) {1665 // Use Block Theme global settings for Block Themes. 1666 if ( wp_is_block_theme() ) { 1667 1667 $theme_layouts = wp_get_global_settings( array( 'layout' ) ); 1668 1668 -
trunk/src/readme.txt
r13713 r13718 6 6 License URI: https://www.gnu.org/licenses/gpl-2.0.html 7 7 Requires PHP: 5.6 8 Requires at least: 5.88 Requires at least: 6.1 9 9 Tested up to: 6.4 10 10 Stable tag: 12.2.0
Note: See TracChangeset
for help on using the changeset viewer.