| Server IP : 172.67.191.88 / Your IP : 104.23.197.165 Web Server : Microsoft-IIS/7.5 System : Windows NT WIN-HN0MTSF2AF1 6.1 build 7601 (Windows Server 2008 R2 Enterprise Edition Service Pack 1) AMD64 User : IWPD_11(bayt-altogg) ( 0) PHP Version : 8.2.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Inetpub/vhosts/bayt-altoggar.com/httpdocs/wp-content/plugins/easy-watermark/ |
Upload File : |
<?php
/**
* Legacy file for updating from previous version
*
* @package easy-watermark
*/
/**
* Activates plugin with new file, deactivates the old file.
*/
add_action( 'admin_init', function() {
$new_file = dirname( __FILE__ ) . '/easy-watermark.php';
deactivate_plugins( __FILE__ );
activate_plugin( $new_file, $_SERVER['REQUEST_URI'] ); //phpcs:ignore
// Remove this file after new plugin activtion.
unlink( __FILE__ );
} );