HEX
Server: LiteSpeed
System: Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User: swifizcd (1555)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: /home/swifizcd/shoppers-joy.com.ng/wp-content/plugins/yaysmtp/includes/UpdateVersion.php
<?php
namespace YaySMTP;

defined( 'ABSPATH' ) || exit;

add_action( 'network_admin_notices', 'YaySMTP\\YaySmtpDeactiveNotice' );
add_action( 'admin_notices', 'YaySMTP\\YaySmtpDeactiveNotice' );

function YaySmtpDeactiveNotice() {
	if ( current_user_can( 'activate_plugins' ) ) {
		?>
	  <div class="notice notice-error is-dismissible">
	  <p>
		<strong><?php esc_html_e( 'It looks like you have another YaySMTP version installed, please delete it before activating this new version. All current settings and data are still preserved.', 'yay-smtp' ); ?>
		<a href="https://docs.yaycommerce.com/yaysmtp/how-to-update-yaysmtp"><?php esc_html_e( 'Read more details.', 'yay-smtp' ); ?></a>
		</strong>
	  </p>
	  </div>
		<?php
		if ( isset( $_GET['activate'] ) ) {
			unset( $_GET['activate'] );
		}
	}
}