/home/vianto5/hidalgoresidences.mx/wp-content/plugins/wp-mail-smtp/src
NameSizeModeActions
Abilities/-0755rm
Admin/-0755rm
Compatibility/-0755rm
Helpers/-0755rm
Integrations/-0755rm
Providers/-0755rm
Queue/-0755rm
Reports/-0755rm
Tasks/-0755rm
TestEmail/-0755rm
UsageTracking/-0755rm
WPCLI/-0755rm
AbstractConnection.php11160644editdlrm
Conflicts.php170500644editdlrm
Connect.php94040644editdlrm
Connection.php9640644editdlrm
ConnectionInterface.php10380644editdlrm
ConnectionsManager.php7650644editdlrm
Core.php346500644editdlrm
DBRepair.php65170644editdlrm
Debug.php43370644editdlrm
EmailSendingDebug.php49390644editdlrm
Geo.php69200644editdlrm
MailCatcher.php13950644editdlrm
MailCatcherInterface.php11850644editdlrm
MailCatcherTrait.php281000644editdlrm
MailCatcherV6.php12320644editdlrm
Migration.php123980644editdlrm
MigrationAbstract.php32880644editdlrm
Migrations.php42210644editdlrm
OptimizedEmailSending.php11950644editdlrm
Options.php495220644editdlrm
Processor.php144480644editdlrm
SiteHealth.php129670644editdlrm
Upgrade.php15870644editdlrm
Uploads.php55660644editdlrm
WP.php250890644editdlrm
WPMailArgs.php45490644editdlrm
WPMailInitiator.php44850644editdlrm
Edit: /home/vianto5/hidalgoresidences.mx/wp-content/plugins/wp-mail-smtp/src/MigrationAbstract.php (3288B)
cur_ver = static::get_current_version(); } /** * Initialize migration. * * @since 3.0.0 */ public function init() { $this->validate_db(); } /** * Whether migration is enabled. * * @since 3.0.0 * * @return bool */ public static function is_enabled() { return true; } /** * Static on purpose, to get current DB version without __construct() and validation. * * @since 3.0.0 * * @return int */ public static function get_current_version() { return (int) get_option( static::OPTION_NAME, 0 ); } /** * Check DB version and update to the latest one. * * @since 3.0.0 */ protected function validate_db() { if ( $this->cur_ver < static::DB_VERSION ) { $this->run( static::DB_VERSION ); } } /** * Update DB version in options table. * * @since 3.0.0 * * @param int $version Version number. */ protected function update_db_ver( $version = 0 ) { $version = (int) $version; if ( empty( $version ) ) { $version = static::DB_VERSION; } // Autoload it, because this value is checked all the time // and no need to request it separately from all autoloaded options. update_option( static::OPTION_NAME, $version, true ); } /** * Prevent running the same migration twice. * Run migration only when required. * * @since 3.0.0 * * @param int $version The current migration version. */ protected function maybe_required_older_migrations( $version ) { $version = (int) $version; if ( ( $version - $this->cur_ver ) > 1 ) { $this->run( $version - 1 ); } } /** * Actual migration launcher. * * @since 3.0.0 * * @param int $version The specified migration version to run. */ protected function run( $version ) { $version = (int) $version; if ( method_exists( $this, 'migrate_to_' . $version ) ) { $this->{'migrate_to_' . $version}(); } else { if ( WP::in_wp_admin() ) { $message = sprintf( /* translators: %1$s - the DB option name, %2$s - WP Mail SMTP, %3$s - error message. */ esc_html__( 'There was an error while upgrading the %1$s database. Please contact %2$s support with this information: %3$s.', 'wp-mail-smtp' ), static::OPTION_NAME, 'WP Mail SMTP', 'migration from v' . static::get_current_version() . ' to v' . static::DB_VERSION . ' failed. Plugin version: v' . WPMS_PLUGIN_VER . '' ); WP::add_admin_notice( $message, WP::ADMIN_NOTICE_ERROR ); } } } }