eturn bool */ protected function should_show_search_engines_discouraged_notification() { return $this->search_engines_are_discouraged() && $this->options_helper->get( 'ignore_search_engines_discouraged_notice', false ) === false; } /** * Remove the search engines discouraged notification if it exists. * * @return void */ protected function remove_search_engines_discouraged_notification_if_exists() { $this->notification_center->remove_notification_by_id( self::NOTIFICATION_ID ); } /** * Add the search engines discouraged notification if it does not exist yet. * * @return void */ protected function maybe_add_search_engines_discouraged_notification() { if ( ! $this->notification_center->get_notification_by_id( self::NOTIFICATION_ID ) ) { $notification = $this->notification(); $this->notification_helper->restore_notification( $notification ); $this->notification_center->add_notification( $notification ); } } /** * Checks whether search engines are discouraged from indexing the site. * * @return bool Whether search engines are discouraged from indexing the site. */ protected function search_engines_are_discouraged() { return (string) \get_option( 'blog_public' ) === '0'; } /** * Whether the search engines notice should be shown. * * @return bool */ protected function should_show_search_engines_discouraged_notice() { $pages_to_show_notice = [ 'index.php', 'plugins.php', 'update-core.php', ]; return ( $this->search_engines_are_discouraged() && $this->capability_helper->current_user_can( 'manage_options' ) && $this->options_helper->get( 'ignore_search_engines_discouraged_notice', false ) === false && ( $this->current_page_helper->is_yoast_seo_page() || \in_array( $this->current_page_helper->get_current_admin_page(), $pages_to_show_notice, true ) ) && $this->current_page_helper->get_current_yoast_seo_page() !== 'wpseo_dashboard' ); } /** * Show the search engines discouraged notice. * * @return void */ protected function show_search_engines_discouraged_notice() { \printf( '
%1$s
', // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Output from present() is considered safe. $this->presenter->present() ); } /** * Returns an instance of the notification. * * @return Yoast_Notification The notification to show. */ protected function notification() { return new Yoast_Notification( $this->presenter->present(), [ 'type' => Yoast_Notification::ERROR, 'id' => self::NOTIFICATION_ID, 'capabilities' => 'wpseo_manage_options', 'priority' => 1, ] ); } /** * Should restore the ignore option for the search engines discouraged notice. * * @return void */ public function restore_ignore_option() { if ( ! $this->search_engines_are_discouraged() ) { $this->options_helper->set( 'ignore_search_engines_discouraged_notice', false ); } } }
Fatal error: Uncaught Error: Class "Elementor\Modules\CloudLibrary\Documents\Cloud_Template_Preview" not found in /htdocs/wp-content/plugins/elementor/modules/cloud-library/module.php:111 Stack trace: #0 /htdocs/wp-includes/class-wp-hook.php(341): Elementor\Modules\CloudLibrary\Module->Elementor\Modules\CloudLibrary\{closure}(Object(Elementor\Core\Documents_Manager)) #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-content/plugins/elementor/core/documents-manager.php(726): do_action('elementor/docum...', Object(Elementor\Core\Documents_Manager)) #4 /htdocs/wp-content/plugins/elementor/core/documents-manager.php(178): Elementor\Core\Documents_Manager->register_types() #5 /htdocs/wp-content/plugins/elementor/core/editor/editor.php(234): Elementor\Core\Documents_Manager->get(NULL) #6 /htdocs/wp-content/plugins/elementor/includes/frontend.php(199): Elementor\Core\Editor\Editor->is_edit_mode() #7 /htdocs/wp-includes/class-wp-hook.php(341): Elementor\Frontend->init_render_mode('') #8 /htdocs/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters('', Array) #9 /htdocs/wp-includes/plugin.php(522): WP_Hook->do_action(Array) #10 /htdocs/wp-includes/template-loader.php(23): do_action('template_redire...') #11 /htdocs/wp-blog-header.php(19): require_once('/htdocs/wp-incl...') #12 /htdocs/index.php(7): require('/htdocs/wp-blog...') #13 {main} thrown in /htdocs/wp-content/plugins/elementor/modules/cloud-library/module.php on line 111