align_items":"center","min_height_tablet":{"unit":"vh","size":"","sizes":[]},"min_height_mobile":{"unit":"vh","size":"","sizes":[]},"flex_justify_content":"space-evenly","flex_wrap":"wrap","flex_direction_tablet":"column","flex_gap_tablet":{"unit":"px","size":0,"sizes":[],"column":"0","row":"0","isLinked":true},"boxed_width":{"unit":"px","size":1600,"sizes":[]},"__globals__":{"background_color":"globals\/colors?id=6a6ce4e"}},"elements":[{"id":"279294c","elType":"container","settings":{"boxed_width":{"unit":"px","size":1400,"sizes":[]},"flex_direction":"column","flex_gap":{"unit":"px","size":10,"sizes":[],"column":"10","row":"10","isLinked":true},"padding":{"unit":"px","top":"0","right":"0","bottom":"0","left":"0","isLinked":true}},"elements":[{"id":"39babbde","elType":"widget","settings":{"title":"Unsere Wartungsvertr\u00e4ge","header_size":"p","align":"center","title_color":"#222222","_margin":{"unit":"%","top":"","right":"","bottom":"","left":"","isLinked":true},"_margin_tablet":{"unit":"%","top":"","right":"","bottom":"","left":"","isLinked":"1"},"_margin_mobile":{"unit":"%","top":"","right":"","bottom":"","left":"","isLinked":true},"_element_width":"inherit","__globals__":{"typography_typography":"globals\/typography?id=f1552a9"}},"elements":[],"widgetType":"heading"},{"id":"5a579275","elType":"widget","settings":{"title":"Renault Werkstatt & Wartung","align":"center","title_color":"#222222","_margin":{"unit":"%","top":"","right":"","bottom":"","left":"","isLinked":true},"_margin_tablet":{"unit":"%","top":"","right":"","bottom":"","left":"","isLinked":"1"},"_margin_mobile":{"unit":"%","top":"4","right":"0","bottom":"0","left":"0","isLinked":false},"_element_width":"inherit","__globals__":{"typography_typography":"globals\/typography?id=primary"}},"elements":[],"widgetType":"heading"}],"isInner":true},{"id":"29d266ba","elType":"container","settings":{"_column_size":"33","width_tablet":{"size":"100","unit":"%"},"align_tablet":"space-between","flex_gap":{"size":0,"unit":"px","column":"0","row":"0","isLinked":true},"flex_gap_tablet":{"size":50,"unit":"px","column":"50","row":"50","isLinked":true},"flex_gap_mobile":{"size":50,"unit":"px","column":"50","row":"50","isLinked":true},"margin":{"unit":"%","top":"","right":"","bottom":"","left":"","isLinked":true},"margin_tablet":{"unit":"%","top":"10","right":"0","bottom":"0","left":"0","isLinked":""},"margin_mobile":{"unit":"%","top":"","right":"","bottom":"","left":"","isLinked":"1"},"padding_mobile":{"unit":"%","top":"","right":"","bottom":"","left":"","isLinked":true},"flex_direction":"row","flex_justify_content":"space-between","min_height":{"unit":"vh","size":65,"sizes":[]},"padding":{"unit":"%","top":"0","right":"0","bottom":"0","left":"0","isLinked":true},"padding_tablet":{"unit":"%","top":"","right":"","bottom":"","left":"","isLinked":true},"flex_direction_tablet":"column","boxed_width":{"unit":"px","size":1400,"sizes":[]},"min_height_tablet":{"unit":"vh","size":"","sizes":[]},"min_height_mobile":{"unit":"vh","size":"","sizes":[]}},"elements":[{"id":"50bf1485","elType":"container","settings":{"flex_direction":"column","content_width":"full","width":{"unit":"%","size":25},"boxed_width":{"unit":"%","size":"","sizes":[]},"boxed_width_tablet":{"unit":"%","size":"","sizes":[]},"boxed_width_mobile":{"unit":"%","size":"","sizes":[]},"flex_justify_content":"space-around","flex_align_items":"center","_flex_size":"none","_element_width":"initial","width_tablet":{"unit":"%","size":100,"sizes":[]},"width_mobile":{"unit":"%","size":"","sizes":[]},"flex_direction_tablet":"row","padding":{"unit":"px","top":"0","right":"0","bottom":"0","left":"0","isLinked":true},"flex_gap":{"unit":"px","size":20,"sizes":[],"column":"20","row":"20","isLinked":true}},"elements":[{"id":"19bed647","elType":"widget","settings":{"selected_icon":{"value":"fas fa-check-circle","library":"fa-solid"},"title_text":"","description_text":"Top Sicherheit mit dem 87-Punkte-Wartungsplan","primary_color":"#29332F","icon_space":{"unit":"px","size":"22","sizes":[]},"text_align":"center","content_vertical_alignment":"miins' ) { // 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. */ 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. */ 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 ); } }