PluginProbe
Block Animations, Motion & Scroll Effects – Ghost Kit / 3.7.2
Block Animations, Motion & Scroll Effects – Ghost Kit v3.7.2
3.7.2 3.7.1 3.7.0 3.6.1 trunk 1.6.3 2.25.0 3.3.0 3.3.1 3.3.2 3.3.3 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.6 3.5.0 3.5.1 3.6.0
← All changes | settings/index.php +6 -2 3.3.03.7.2 View file →
@@ -39,9 +39,8 @@
39 39 array(),
40 40 filemtime( ghostkit()->plugin_path . 'build/assets/admin/css/admin.css' )
41 41 );
42 42 wp_style_add_data( 'ghostkit-admin', 'rtl', 'replace' );
43 - wp_style_add_data( 'ghostkit-admin', 'suffix', '.min' );
44 43
45 44 GhostKit_Assets::enqueue_style(
46 45 'ghostkit-settings',
47 46 'build/settings/style',
@@ -48,9 +47,8 @@
48 47 array(),
49 48 filemtime( ghostkit()->plugin_path . 'build/settings/style.css' )
50 49 );
51 50 wp_style_add_data( 'ghostkit-settings', 'rtl', 'replace' );
52 - wp_style_add_data( 'ghostkit-settings', 'suffix', '.min' );
53 51
54 52 if ( 'toplevel_page_ghostkit' !== $screen->id ) {
55 53 return;
56 54 }
@@ -68,13 +66,19 @@
68 66 sprintf( 'wp.blocks.setCategories( %s );', wp_json_encode( get_block_categories( $block_editor_context ) ) ),
69 67 'after'
70 68 );
71 69
70 + // The settings page is not a block editor screen, but it boots the block editor
71 + // scripts, so callbacks that check this flag have to see the editor context.
72 + add_filter( 'should_load_block_editor_scripts_and_styles', '__return_true' );
73 +
72 74 // phpcs:ignore
73 75 do_action( 'enqueue_block_editor_assets' );
74 76
75 77 // phpcs:ignore
76 78 do_action( 'enqueue_block_assets' );
79 +
80 + remove_filter( 'should_load_block_editor_scripts_and_styles', '__return_true' );
77 81
78 82 // Ghost Kit Settings.
79 83 GhostKit_Assets::enqueue_script(
80 84 'ghostkit-settings',