← All changes
|
assets/misc/gutenberg/enqueue-block-editor-assets.php
+3
-4
3.16.0
→
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) |
| @@ -79,10 +78,10 @@ | ||
| 79 | 78 | |
| 80 | 79 | global $pagenow; |
| 81 | 80 | |
| 82 | 81 | $arrDeps = ($pagenow === 'widgets.php') ? |
| 83 | - array( 'wp-blocks', 'wp-dom', 'wp-dom-ready', 'wp-edit-widgets', 'lodash', ) : | |
| 84 | - array( 'wp-blocks', 'wp-dom', 'wp-dom-ready', 'wp-edit-post' , 'lodash', ); | |
| 82 | + array( 'wp-blocks', 'wp-dom', 'wp-dom-ready', 'wp-edit-widgets' ) : | |
| 83 | + array( 'wp-blocks', 'wp-dom', 'wp-dom-ready', 'wp-edit-post' ); | |
| 85 | 84 | |
| 86 | 85 | |
| 87 | 86 | //Register the Block Content Restriction assets |
| 88 | 87 | if ( $content_restriction_activated == 'yes' && version_compare( $wp_version, "5.0.0", ">=" ) ) { |