// Translators: 1 - The plugin short name ("AIOSEO"). __( 'Warning: %1$s has detected that you may have an invalid description format. This could lead to descriptions not being properly applied to your content.', 'all-in-one-seo-pack' ), AIOSEO_PLUGIN_SHORT_NAME ) . ' ' . __( 'A Description tag is required in order to properly display your meta descriptions on your site.', 'all-in-one-seo-pack' ), 'type' => 'error', 'level' => [ 'all' ], 'button1_label' => __( 'Fix Now', 'all-in-one-seo-pack' ), 'button1_action' => 'http://route#aioseo-search-appearance&aioseo-scroll=description-format&aioseo-highlight=description-format:advanced', 'button2_label' => __( 'Remind Me Later', 'all-in-one-seo-pack' ), 'button2_action' => 'http://action#notification/description-format-reminder', 'start' => gmdate( 'Y-m-d H:i:s' ) ] ); } /** * Check if blog visibility is changing and add/delete the appropriate notification. * * @since 4.0.0 * * @param string $optionName The name of the option we are checking. * @param mixed $oldValue The old value. * @param mixed $newValue The new value. * @return void */ public function maybeResetBlogVisibility( $optionName, $oldValue, $newValue ) { if ( 'blog_public' === $optionName ) { if ( 1 === intval( $newValue ) ) { $notification = Models\Notification::getNotificationByName( 'blog-visibility' ); if ( ! $notification->exists() ) { return; } Models\Notification::deleteNotificationByName( 'blog-visibility' ); return; } $this->blogVisibility(); } } /** * Add a notice if the blog is set to hidden. * * @since 4.0.0 * * @return void */ public function conflictingPlugins( $plugins = [] ) { if ( empty( $plugins ) ) { return; } $content = sprintf( // Translators: 1 - The plugin short name ("AIOSEO"). __( 'Warning: %1$s has detected other active SEO or sitemap plugins. We recommend that you deactivate the following plugins to prevent any conflicts:', 'all-in-one-seo-pack' ), AIOSEO_PLUGIN_SHORT_NAME ) . ''; // Update an existing notice. $notification = Models\Notification::getNotificationByName( 'conflicting-plugins' ); if ( $notification->exists() ) { $notification->content = $content; $notification->save(); return; } // Create a new one if it doesn't exist. Models\Notification::addNotification( [ 'slug' => uniqid(), 'notification_name' => 'conflicting-plugins', 'title' => __( 'Conflicting Plugins Detected', 'all-in-one-seo-pack' ), 'content' => $content, 'type' => 'error', 'level' => [ 'all' ], 'button1_label' => __( 'Fix Now', 'all-in-one-seo-pack' ), 'button1_action' => 'http://action#sitemap/deactivate-conflicting-plugins?refresh', 'button2_label' => __( 'Remind Me Later', 'all-in-one-seo-pack' ), 'button2_action' => 'http://action#notification/conflicting-plugins-reminder', 'start' => gmdate( 'Y-m-d H:i:s' ) ] ); } /** * Add a notice if the user is using deprecated filters. * * @since 4.0.0 * * @return void */ public function deprecatedFilters( $filters = [] ) { if ( empty( $filters ) ) { return; } // We've updated our notification so let's remove the old one if it exists. $notification = Models\Notification::getNotificationByName( 'deprecated-filters' ); if ( $notification->exists() ) { Models\Notification::deleteNotificationByName( 'deprecated-filters' ); } $content = sprintf( // Translators: 1 - The plugin short name ("AIOSEO"), 2 - Opening link tag, 3 - Closing link tag. __( 'Warning: %1$s has detected the use of filters that have been deprecated on your site. These filters may be in use by another plugin or your theme. If that is the case, these filters most likely will not work with this plugin. Please make sure you have updated all your plugins. If you have manually added these filters, please %2$scheck out our documentation%3$s for the updated filters to use.', 'all-in-one-seo-pack' ), // phpcs:ignore Generic.Files.LineLength.MaxExceeded AIOSEO_PLUGIN_SHORT_NAME, '', '' ) . ''; // Update an existing notice. $notification = Models\Notification::getNotificationByName( 'deprecated-filters-v2' ); if ( $notification->exists() ) { $notification->content = $content; $notification->save(); return; } // Create a new one if it doesn't exist. Models\Notification::addNotification( [ 'slug' => uniqid(), 'notification_name' => 'deprecated-filters-v2', 'title' => __( 'Deprecated Filters Detected', 'all-in-one-seo-pack' ), 'content' => $content, 'type' => 'warning', 'level' => [ 'all' ], 'button1_label' => __( 'Remind Me Later', 'all-in-one-seo-pack' ), 'button1_action' => 'http://action#notification/deprecated-filters-reminder', 'start' => gmdate( 'Y-m-d H:i:s' ) ] ); } }
Fatal error: Uncaught Error: Class 'AIOSEO\Plugin\Common\Admin\Notices\Notices' not found in /var/www/html/vistosistemas.com.br/web/novo2020/wp-content/plugins/all-in-one-seo-pack/app/Lite/Admin/Notices/Notices.php:17 Stack trace: #0 /var/www/html/vistosistemas.com.br/web/novo2020/wp-content/plugins/all-in-one-seo-pack/vendor/composer/ClassLoader.php(571): include() #1 /var/www/html/vistosistemas.com.br/web/novo2020/wp-content/plugins/all-in-one-seo-pack/vendor/composer/ClassLoader.php(428): Composer\Autoload\includeFile('/var/www/html/v...') #2 [internal function]: Composer\Autoload\ClassLoader->loadClass('AIOSEO\\Plugin\\L...') #3 /var/www/html/vistosistemas.com.br/web/novo2020/wp-content/plugins/all-in-one-seo-pack/app/AIOSEO.php(335): spl_autoload_call('AIOSEO\\Plugin\\L...') #4 /var/www/html/vistosistemas.com.br/web/novo2020/wp-content/plugins/all-in-one-seo-pack/app/AIOSEO.php(182): AIOSEO\Plugin\AIOSEO->load() #5 /var/www/html/vistosistemas.com.br/web/novo2020/wp-content/plugins/all-in-one-seo-pack/app/AIOSEO.php(1 in /var/www/html/vistosistemas.com.br/web/novo2020/wp-content/plugins/all-in-one-seo-pack/app/Lite/Admin/Notices/Notices.php on line 17