lue, $old_value ) { if ( $option !== 'auto_update_plugins' ) { // If future versions of WordPress change this filter's behavior, our behavior should stay consistent. return; } if ( ! \is_array( $old_value ) || ! \is_array( $new_value ) ) { return; } $auto_updates_are_enabled = $this->are_auto_updates_enabled( self::WPSEO_FREE_PLUGIN_ID, $new_value ); $auto_updates_were_enabled = $this->are_auto_updates_enabled( self::WPSEO_FREE_PLUGIN_ID, $old_value ); if ( $auto_updates_are_enabled === $auto_updates_were_enabled ) { // Auto-updates for Yoast SEO have stayed the same, so have neither been enabled or disabled. return; } $auto_updates_have_been_enabled = $auto_updates_are_enabled && ! $auto_updates_were_enabled; if ( $auto_updates_have_been_enabled ) { $this->enable_auto_updates_for_addons( $new_value ); return; } else { $this->disable_auto_updates_for_addons( $new_value ); return; } if ( ! $auto_updates_are_enabled ) { return; } $auto_updates_have_been_removed = false; foreach ( self::ADD_ON_PLUGIN_FILES as $addon ) { if ( ! $this->are_auto_updates_enabled( $addon, $new_value ) ) { $auto_updates_have_been_removed = true; break; } } if ( $auto_updates_have_been_removed ) { $this->enable_auto_updates_for_addons( $new_value ); } } /** * Trigger a change in the auto update detection whenever a new Yoast addon is activated. * * @param string $plugin The plugin that is activated. * * @return void */ public function maybe_toggle_auto_updates_for_new_install( $plugin ) { $not_a_yoast_addon = ! \in_array( $plugin, self::ADD_ON_PLUGIN_FILES, true ); if ( $not_a_yoast_addon ) { return; } $enabled_auto_updates = \get_site_option( 'auto_update_plugins' ); $this->toggle_auto_updates_for_add_ons( 'auto_update_plugins', $enabled_auto_updates, [] ); } /** * Enables auto-updates for all addons. * * @param string[] $auto_updated_plugins The current list of auto-updated plugins. * * @return void */ protected function enable_auto_updates_for_addons( $auto_updated_plugins ) { $plugins = \array_unique( \array_merge( $auto_updated_plugins, self::ADD_ON_PLUGIN_FILES ) ); \update_site_option( 'auto_update_plugins', $plugins ); } /** * Disables auto-updates for all addons. * * @param string[] $auto_updated_plugins The current list of auto-updated plugins. * * @return void */ protected function disable_auto_updates_for_addons( $auto_updated_plugins ) { $plugins = \array_values( \array_diff( $auto_updated_plugins, self::ADD_ON_PLUGIN_FILES ) ); \update_site_option( 'auto_update_plugins', $plugins ); } /** * Checks whether auto updates for a plugin are enabled. * * @param string $plugin_id The plugin ID. * @param array $auto_updated_plugins The array of auto updated plugins. * * @return bool Whether auto updates for a plugin are enabled. */ protected function are_auto_updates_enabled( $plugin_id, $auto_updated_plugins ) { if ( $auto_updated_plugins === false || ! \is_array( $auto_updated_plugins ) ) { return false; } return \in_array( $plugin_id, $auto_updated_plugins, true ); } }
Warning: Cannot modify header information - headers already sent by (output started at /htdocs/chamz.net/wp-content/plugins/wordpress-seo/src/integrations/watchers/addon-update-watcher.php:1) in /htdocs/chamz.net/wp-content/plugins/themesky/themesky.php on line 109
_background', 'types' => [ 'classic', 'gradient' ], 'exclude' => [ 'image' ], 'selector' => $button_hover_selector, 'fields_options' => [ 'background' => [ 'default' => 'classic', ], 'color' => [ 'dynamic' => [], ], 'color_b' => [ 'dynamic' => [], ], ], ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'button_hover_box_shadow', 'selector' => $button_hover_selector, ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'button_hover_border', 'selector' => $button_hover_selector, 'fields_options' => [ 'color' => [ 'dynamic' => [], ], ], ] ); $this->add_control( 'button_hover_border_radius', [ 'label' => esc_html__( 'Border Radius', 'elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em', 'rem', 'custom' ], 'selectors' => [ $button_hover_selector => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->end_controls_tab(); $this->end_controls_tabs(); $this->add_responsive_control( 'button_padding', [ 'label' => esc_html__( 'Padding', 'elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em', 'rem', 'vw', 'custom' ], 'selectors' => [ $button_selector => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'separator' => 'before', ] ); $this->end_controls_section(); } }
Fatal error: Uncaught Error: Class "Elementor\Core\Kits\Documents\Tabs\Theme_Style_Buttons" not found in /htdocs/chamz.net/wp-content/plugins/elementor/core/kits/documents/kit.php:117 Stack trace: #0 /htdocs/chamz.net/wp-content/plugins/elementor/core/kits/documents/kit.php(216): Elementor\Core\Kits\Documents\Kit->register_tab('theme-style-but...', 'Elementor\\Core\\...') #1 /htdocs/chamz.net/wp-content/plugins/elementor/core/kits/documents/kit.php(23): Elementor\Core\Kits\Documents\Kit->register_tabs() #2 /htdocs/chamz.net/wp-content/plugins/elementor/core/documents-manager.php(202): Elementor\Core\Kits\Documents\Kit->__construct(Array) #3 /htdocs/chamz.net/wp-content/plugins/elementor/core/documents-manager.php(284): Elementor\Core\Documents_Manager->get(17061) #4 /htdocs/chamz.net/wp-content/plugins/elementor/core/kits/manager.php(53): Elementor\Core\Documents_Manager->get_doc_for_frontend('17061') #5 /htdocs/chamz.net/wp-content/plugins/elementor/core/kits/manager.php(111): Elementor\Core\Kits\Manager->get_active_kit_for_frontend() #6 /htdocs/chamz.net/wp-content/plugins/elementor/core/breakpoints/breakpoint.php(130): Elementor\Core\Kits\Manager->get_current_settings('viewport_mobile') #7 /htdocs/chamz.net/wp-content/plugins/elementor/core/breakpoints/breakpoint.php(71): Elementor\Core\Breakpoints\Breakpoint->init_value() #8 /htdocs/chamz.net/wp-content/plugins/elementor/core/breakpoints/breakpoint.php(88): Elementor\Core\Breakpoints\Breakpoint->get_value() #9 /htdocs/chamz.net/wp-content/plugins/elementor/core/breakpoints/manager.php(195): Elementor\Core\Breakpoints\Breakpoint->is_custom() #10 /htdocs/chamz.net/wp-content/plugins/elementor/includes/frontend.php(477): Elementor\Core\Breakpoints\Manager->has_custom_breakpoints() #11 /htdocs/chamz.net/wp-includes/class-wp-hook.php(324): Elementor\Frontend->register_styles('') #12 /htdocs/chamz.net/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #13 /htdocs/chamz.net/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #14 /htdocs/chamz.net/wp-includes/script-loader.php(2263): do_action('wp_enqueue_scri...') #15 /htdocs/chamz.net/wp-includes/class-wp-hook.php(324): wp_enqueue_scripts('') #16 /htdocs/chamz.net/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #17 /htdocs/chamz.net/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #18 /htdocs/chamz.net/wp-includes/general-template.php(3065): do_action('wp_head') #19 /htdocs/chamz.net/wp-content/themes/gostore/header.php(14): wp_head() #20 /htdocs/chamz.net/wp-includes/template.php(810): require_once('/htdocs/chamz.n...') #21 /htdocs/chamz.net/wp-includes/template.php(745): load_template('/htdocs/chamz.n...', true, Array) #22 /htdocs/chamz.net/wp-includes/general-template.php(48): locate_template(Array, true, true, Array) #23 /htdocs/chamz.net/wp-content/themes/gostore/woocommerce/single-product.php(16): get_header() #24 /htdocs/chamz.net/wp-includes/template-loader.php(106): include('/htdocs/chamz.n...') #25 /htdocs/chamz.net/wp-blog-header.php(19): require_once('/htdocs/chamz.n...') #26 /htdocs/chamz.net/index.php(17): require('/htdocs/chamz.n...') #27 {main} thrown in /htdocs/chamz.net/wp-content/plugins/elementor/core/kits/documents/kit.php on line 117