update plugins

This commit is contained in:
Tony Volpe
2024-06-17 14:42:23 -04:00
parent a00f379f7f
commit 38e314323c
9467 changed files with 2032414 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
<?php
namespace Yoast\WP\SEO\Premium\Database;
use Exception;
use Yoast\WP\SEO\Initializers\Migration_Runner;
/**
* Triggers premium database migrations and handles results.
*/
class Migration_Runner_Premium extends Migration_Runner {
/**
* Runs this initializer.
*
* {@inheritDoc}
*
* @return void
*/
public function initialize() {
$this->run_premium_migrations();
// The below action is used when queries fail, this may happen in a multisite environment when switch_to_blog is used.
\add_action( '_yoast_run_migrations', [ $this, 'run_premium_migrations' ] );
}
/**
* Runs the Premium migrations.
*
* @return void
*
* @throws Exception When a migration errored.
*/
public function run_premium_migrations() {
$this->run_migrations( 'premium', \WPSEO_PREMIUM_VERSION );
}
}