search-pkg' ) ); } return update_option( self::SEARCH_MODULE_INSTANT_SEARCH_OPTION_KEY, true ); } /** * Update instant search status * * @param boolean $enabled - true to enable, false to disable. */ public function update_instant_search_status( $enabled ) { return $enabled ? $this->enable_instant_search() : $this->disable_instant_search(); } /** * Get a list of activated modules as an array of module slugs. * * @deprecated 0.12.3 * @return Array $active_modules */ public function get_active_modules() { _deprecated_function( __METHOD__, 'jetpack-search-0.12.3', 'Automattic\\Jetpack\\Modules\\get_active' ); return ( new Modules() )->get_active(); } /** * Adds search to the list of available modules * * @param array $modules The available modules. * @return array */ public function search_filter_available_modules( $modules ) { return array_merge( array( self::JETPACK_SEARCH_MODULE_SLUG ), $modules ); } }
Fatal error: Uncaught Error: Class "Automattic\Jetpack\Search\Module_Control" not found in /htdocs/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-search/src/class-rest-controller.php:62 Stack trace: #0 /htdocs/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-search/src/initializers/class-initializer.php(102): Automattic\Jetpack\Search\REST_Controller->__construct() #1 /htdocs/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-search/src/initializers/class-initializer.php(48): Automattic\Jetpack\Search\Initializer::init_before_connection() #2 /htdocs/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-config/src/class-config.php(282): Automattic\Jetpack\Search\Initializer::init() #3 /htdocs/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-config/src/class-config.php(217): Automattic\Jetpack\Config->enable_search() #4 /htdocs/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-config/src/class-config.php(134): Automattic\Jetpack\Config->ensure_feature('search') #5 /htdocs/wp-includes/class-wp-hook.php(324): Automattic\Jetpack\Config->on_plugins_loaded('') #6 /htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #7 /htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #8 /htdocs/wp-settings.php(559): do_action('plugins_loaded') #9 /htdocs/wp-config.php(85): require_once('/htdocs/wp-sett...') #10 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #11 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #12 /htdocs/index.php(17): require('/htdocs/wp-blog...') #13 {main} thrown in /htdocs/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-search/src/class-rest-controller.php on line 62