updated plugin WP Mail SMTP version 2.4.0

This commit is contained in:
2020-09-25 14:44:17 +00:00
committed by Gitium
parent 4f3d745449
commit 3053837189
673 changed files with 31869 additions and 65613 deletions

View File

@ -51,7 +51,11 @@ $am_announcement_params = [
* Disable Action Schedule Queue Runner, to prevent a fatal error on the shutdown WP hook.
*/
if ( class_exists( 'ActionScheduler_QueueRunner' ) ) {
ActionScheduler_QueueRunner::instance()->unhook_dispatch_async_request();
$as_queue_runner = \ActionScheduler_QueueRunner::instance();
if ( method_exists( $as_queue_runner, 'unhook_dispatch_async_request' ) ) {
$as_queue_runner->unhook_dispatch_async_request();
}
}
// WP MS uninstall process.