) ) { return false; } // Don't do anything if we're not published. if ( 'publish' !== $post->post_status || 'publish' !== $postBefore->post_status ) { return false; } // Don't do anything is the post type is not public. if ( ! is_post_type_viewable( $post->post_type ) ) { return false; } return true; } /** * Tries to add a automatic redirect. * * @since 4.2.3 * * @param string $postType The post type. * @param string $before The url before. * @param string $after The url after. * @return bool True if an automatic redirect was added. */ private function automaticRedirect( $postType, $before, $after ) { if ( ! aioseo()->addons->getLoadedAddon( 'redirects' ) ) { return false; } return aioseoRedirects()->monitor->automaticRedirect( $postType, $before, $after ); } /** * Generates a URL for adding manual redirects. * * @since 4.2.3 * * @param array $urls An array of [url, target, type, slash, case, regex]. * @return string The redirect link. */ public function manualRedirectUrl( $urls ) { if ( ! aioseo()->addons->getLoadedAddon( 'redirects' ) ) { return admin_url( 'admin.php?page=aioseo-redirects' ); } return aioseoRedirects()->helpers->manualRedirectUrl( $urls ); } }
Fatal error: Uncaught Error: Class "AIOSEO\Plugin\Common\Admin\SlugMonitor" not found in /htdocs/wp-content/plugins/all-in-one-seo-pack/app/AIOSEO.php:318 Stack trace: #0 /htdocs/wp-content/plugins/all-in-one-seo-pack/app/AIOSEO.php(97): AIOSEO\Plugin\AIOSEO->load() #1 /htdocs/wp-content/plugins/all-in-one-seo-pack/app/AIOSEO.php(76): AIOSEO\Plugin\AIOSEO->init() #2 /htdocs/wp-content/plugins/all-in-one-seo-pack/app/AIOSEO.php(414): AIOSEO\Plugin\AIOSEO::instance() #3 /htdocs/wp-content/plugins/all-in-one-seo-pack/all_in_one_seo_pack.php(96): aioseo() #4 /htdocs/wp-settings.php(526): include_once('/htdocs/wp-cont...') #5 /htdocs/wp-config.php(85): require_once('/htdocs/wp-sett...') #6 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #7 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #8 /htdocs/index.php(17): require('/htdocs/wp-blog...') #9 {main} thrown in /htdocs/wp-content/plugins/all-in-one-seo-pack/app/AIOSEO.php on line 318