PluginProbe
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses / 2.10.0
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses v2.10.0
2.10.0 2.10.01 2.9.1 2.9.0 2.8.1 2.8.0 2.7.7 2.7.5 2.7.0 2.6.01 2.6.0 2.5.0 2.4.01 trunk 1.0.90 1.0.91 1.0.92 1.0.93 1.0.94 1.0.95 1.0.96 1.0.97 1.0.98 1.0.99 1.1.0 All 77 releases
← All changes | Modules/Gutenberg/EditorBlock.php +2 -15 2.7.02.10.0 View file →
@@ -51,9 +51,9 @@
51 51 if (function_exists('\register_block_type')) {
52 52 \register_block_type(
53 53 'fluent-community/page-layout',
54 54 array(
55 - 'api_version' => 3,
55 + 'api_version' => '3', // WP core uses int but stub declares string
56 56 'editor_script' => 'custom-layout-block-editor',
57 57 'editor_style' => 'custom-layout-block-editor-style',
58 58 'style' => 'fluent_community_global',
59 59 'render_callback' => [$this, 'render'],
@@ -142,22 +142,9 @@
142 142 return $classes;
143 143 });
144 144 } else if (Helper::hasColorScheme()) {
145 145 add_action('wp_head', function () {
146 - ?>
147 - <script>
148 - (function () {
149 - var globalStates = localStorage.getItem('fcom_global_storage');
150 - if (globalStates) {
151 - globalStates = JSON.parse(globalStates);
152 - if (globalStates && globalStates.fcom_color_mode == 'dark') {
153 - document.documentElement.classList.add('dark');
154 - document.documentElement.setAttribute('data-color-mode', 'dark');
155 - }
156 - }
157 - })();
158 - </script>
159 - <?php
146 + Helper::renderColorSchemePrePaintScript();
160 147 });
161 148 }
162 149
163 150 ob_start();