Skip to content

Commit d28f85e

Browse files
Fix fatal error when no kit is present in Elementor (#206)
Co-authored-by: Marc Perel <[email protected]>
1 parent e46ce95 commit d28f85e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/elementor-functions.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function hello_elementor_get_setting( $setting_id ) {
3636
$return = '';
3737

3838
if ( ! isset( $hello_elementor_settings['kit_settings'] ) ) {
39-
$kit = \Elementor\Plugin::$instance->documents->get( \Elementor\Plugin::$instance->kits_manager->get_active_id(), false );
39+
$kit = \Elementor\Plugin::$instance->kits_manager->get_active_kit();
4040
$hello_elementor_settings['kit_settings'] = $kit->get_settings();
4141
}
4242

0 commit comments

Comments
 (0)