Hackfut Security File Manager
Current Path:
/home/haielekt/pasangac.com/wp-content/plugins/wp-mail-smtp/src
home
/
haielekt
/
pasangac.com
/
wp-content
/
plugins
/
wp-mail-smtp
/
src
/
📁
..
📄
AbstractConnection.php
(1.09 KB)
📁
Admin
📁
Compatibility
📄
Conflicts.php
(14.42 KB)
📄
Connect.php
(8.73 KB)
📄
Connection.php
(964 B)
📄
ConnectionInterface.php
(1.01 KB)
📄
ConnectionsManager.php
(765 B)
📄
Core.php
(33.3 KB)
📄
DBRepair.php
(5.64 KB)
📄
Debug.php
(3.5 KB)
📄
Geo.php
(5.39 KB)
📁
Helpers
📄
MailCatcher.php
(1.36 KB)
📄
MailCatcherInterface.php
(1.16 KB)
📄
MailCatcherTrait.php
(9.36 KB)
📄
MailCatcherV6.php
(1.21 KB)
📄
Migration.php
(12.11 KB)
📄
MigrationAbstract.php
(3.21 KB)
📄
Options.php
(40.08 KB)
📄
Processor.php
(11.21 KB)
📁
Providers
📁
Reports
📄
SiteHealth.php
(12.63 KB)
📁
Tasks
📄
Upgrade.php
(1.16 KB)
📄
Uploads.php
(4.63 KB)
📁
UsageTracking
📄
WP.php
(18.81 KB)
📄
WPMailInitiator.php
(4.02 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() { $upgrades = $this->upgrades(); if ( empty( $upgrades ) ) { return; } // Run any available upgrades. foreach ( $upgrades as $upgrade ) { $this->{$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' ); $upgrades = array(); // Version 1.1.0 upgrade; prior to this the option was not available. if ( empty( $version ) ) { $upgrades[] = '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