← All changes
|
assets/misc/gutenberg/enqueue-block-editor-assets.php
+1
-2
3.16.1
→
4.0.3
View file →
| @@ -20,10 +20,9 @@ | ||
| 20 | 20 | $active_design = wppb_get_active_form_design(); |
| 21 | 21 | |
| 22 | 22 | if ( $active_design === 'form-style-default' ) { |
| 23 | 23 | |
| 24 | - // load stylesheet for the Default Form Style if the active WP Theme is a Block Theme (Block Themes were introduced in WordPress since the 5.9 release) | |
| 25 | - if ( version_compare( get_bloginfo( 'version' ), '5.9', '>=' ) && function_exists( 'wp_is_block_theme' ) && wp_is_block_theme() ) | |
| 24 | + if ( wppb_should_load_block_theme_stylesheet() ) | |
| 26 | 25 | wp_enqueue_style('wppb_block_themes_front_end_stylesheet', WPPB_PLUGIN_URL . 'assets/css/style-block-themes-front-end.css', array('wp-edit-blocks'), PROFILE_BUILDER_VERSION); |
| 27 | 26 | |
| 28 | 27 | } |
| 29 | 28 | else { // if $active_design is other than 'form-style-default' the constants WPPB_PAID_PLUGIN_DIR and WPPB_PAID_PLUGIN_URL are defined (verified at line:14) |