plate' => $theme_slug, 'site_url' => get_site_url(), 'mods' => $mods ? $mods : array(), 'options' => array(), 'custom_palettes' => get_option('blocksy_custom_palettes', []), ]; $core_options = [ 'blogname', 'blogdescription', 'show_on_front', 'page_on_front', 'page_for_posts', ]; $settings = $wp_customize->settings(); foreach ($settings as $key => $setting) { if ('option' === $setting->type) { // Don't save widget data. if ('widget_' === substr(strtolower($key), 0, 7)) { continue; } // Don't save sidebar data. if ('sidebars_' === substr(strtolower($key), 0, 9)) { continue; } // Don't save core options. if (in_array($key, $core_options)) { continue; } $data['options'][$key] = $setting->value(); } } if (function_exists('wp_get_custom_css_post')) { $data['wp_css'] = wp_get_custom_css($theme_slug); } } if (strpos($strategy, 'widgets') !== false) { $widgets = new DemoInstallWidgetsExport(); $data['blocksy_widgets'] = json_decode($widgets->export()); } return $data; } private function get_theme_mods($theme_slug = null) { if (! $theme_slug) { $theme_slug = get_option('stylesheet'); } $mods = get_option("theme_mods_$theme_slug"); if (false === $mods) { $theme_name = wp_get_theme($theme_slug)->get( 'Name' ); $mods = get_option( "mods_$theme_name" ); // Deprecated location. if ( is_admin() && false !== $mods ) { update_option( "theme_mods_$theme_slug", $mods ); delete_option( "mods_$theme_name" ); } } return $mods; } }
Fatal error: Uncaught Error: Class "Blocksy\CustomizerOptionsManager" not found in /htdocs/wp-content/plugins/blocksy-companion/plugin.php:86 Stack trace: #0 /htdocs/wp-includes/class-wp-hook.php(341): Blocksy\Plugin->init('') #1 /htdocs/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array) #2 /htdocs/wp-includes/plugin.php(522): WP_Hook->do_action(Array) #3 /htdocs/wp-settings.php(742): do_action('init') #4 /htdocs/wp-config.php(117): require_once('/htdocs/wp-sett...') #5 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #6 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #7 /htdocs/index.php(17): require('/htdocs/wp-blog...') #8 {main} thrown in /htdocs/wp-content/plugins/blocksy-companion/plugin.php on line 86