X7ROOT File Manager
Current Path:
/home/oakwood/public_html/wp-content/plugins/wp-mail-smtp/src
home
/
oakwood
/
public_html
/
wp-content
/
plugins
/
wp-mail-smtp
/
src
/
ðŸ“
..
📄
AbstractConnection.php
(1.09 KB)
ðŸ“
Admin
ðŸ“
Compatibility
📄
Conflicts.php
(15.01 KB)
📄
Connect.php
(9.18 KB)
📄
Connection.php
(964 B)
📄
ConnectionInterface.php
(1.01 KB)
📄
ConnectionsManager.php
(765 B)
📄
Core.php
(33.45 KB)
📄
DBRepair.php
(6.29 KB)
📄
Debug.php
(3.5 KB)
📄
Geo.php
(6.76 KB)
ðŸ“
Helpers
📄
MailCatcher.php
(1.63 KB)
📄
MailCatcherInterface.php
(1.16 KB)
📄
MailCatcherTrait.php
(13.43 KB)
📄
MailCatcherV6.php
(1.47 KB)
📄
Migration.php
(12.11 KB)
📄
MigrationAbstract.php
(3.21 KB)
📄
Migrations.php
(3.59 KB)
📄
OptimizedEmailSending.php
(1.17 KB)
📄
Options.php
(46.44 KB)
📄
Processor.php
(14.06 KB)
ðŸ“
Providers
ðŸ“
Queue
ðŸ“
Reports
📄
SiteHealth.php
(12.63 KB)
ðŸ“
Tasks
📄
Upgrade.php
(1.55 KB)
📄
Uploads.php
(5.44 KB)
ðŸ“
UsageTracking
📄
WP.php
(20.08 KB)
📄
WPMailArgs.php
(4.44 KB)
📄
WPMailInitiator.php
(4.38 KB)
Editing: Upgrade.php
<?php namespace WPMailSMTP; /** * Class Upgrade helps upgrade plugin options and similar tasks when the * occasion arises. * * @since 1.1.0 */ class Upgrade { /** * Upgrade constructor. * * @since 1.1.0 */ public function __construct() { } /** * Run upgrades. * * @since 4.0.0 */ public function run() { $upgrades = $this->upgrades(); if ( empty( $upgrades ) ) { return; } // Run any available upgrades. foreach ( $upgrades as $upgrade ) { if ( is_callable( $upgrade ) ) { $upgrade(); } } // Update version post upgrade(s). update_option( 'wp_mail_smtp_version', WPMS_PLUGIN_VER ); } /** * Whether we need to perform an upgrade. * * @since 1.1.0 * * @return array */ protected function upgrades() { $version = get_option( 'wp_mail_smtp_version' ); /** * Filters the list of upgrade callbacks to run. * * @since 4.4.0 * * @param array $upgrades List of upgrade callbacks to run. * @param string $version Latest installed version of the plugin. */ $upgrades = apply_filters( 'wp_mail_smtp_upgrade_upgrades', [], $version ); // Version 1.1.0 upgrade; prior to this the option was not available. if ( empty( $version ) ) { $upgrades[] = [ $this, 'v110_upgrade' ]; } return $upgrades; } /** * Upgrade routine for v1.1.0. * * Set SMTPAutoTLS to true. * * @since 1.1.0 */ public function v110_upgrade() { // Enable SMTPAutoTLS option. $values = [ 'smtp' => [ 'autotls' => true, ], ]; Options::init()->set( $values, false, false ); } }
Upload File
Create Folder