| @@ -38,9 +38,9 @@ | ||
| 38 | 38 | return (bool) apply_filters('f!windpress/integration/gutenberg:enabled', Config::get(sprintf('integration.%s.enabled', $this->get_name()), \true)); |
| 39 | 39 | } |
| 40 | 40 | public function register_provider(array $providers): array |
| 41 | 41 | { |
| 42 | - $providers[] = ['id' => $this->get_name(), 'name' => __('Gutenberg', 'windpress'), 'description' => __('Gutenberg/Block Editor integration', 'windpress'), 'callback' => Config::get(sprintf('integration.%s.compile.enabled', $this->get_name()), \true) ? \WindPress\WindPress\Integration\Gutenberg\Compile::class : static fn() => [], 'enabled' => $this->is_enabled(), 'type' => 'custom', 'homepage' => 'https://wordpress.org/gutenberg/?ref=windpress', 'is_installed_active' => static function () { | |
| 42 | + $providers[] = ['id' => $this->get_name(), 'name' => __('Gutenberg', 'windpress'), 'description' => __('Gutenberg/Block Editor integration', 'windpress'), 'source_index' => 1, 'callback' => Config::get(sprintf('integration.%s.compile.enabled', $this->get_name()), \true) ? \WindPress\WindPress\Integration\Gutenberg\Compile::class : static fn() => [], 'enabled' => $this->is_enabled(), 'type' => 'custom', 'homepage' => 'https://wordpress.org/gutenberg/?ref=jooosi', 'is_installed_active' => static function () { | |
| 43 | 43 | $is = -1; |
| 44 | 44 | $is += function_exists('register_block_type') ? 1 : 0; |
| 45 | 45 | $is += function_exists('register_block_type') ? 1 : 0; |
| 46 | 46 | return $is; |