PluginProbe
YayExtra – WooCommerce Extra Product Options / 1.2
YayExtra – WooCommerce Extra Product Options v1.2
2.1.0 trunk 1.1.4 1.1.5 1.1.8 1.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3 1.3.1 1.3.4 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.5.2 1.5.3 1.5.5 1.5.6 All 30 releases
yayextra / includes / UpdateVersion.php

UpdateVersion.php in YayExtra – WooCommerce Extra Product Options 1.2, at includes/UpdateVersion.php

25 lines 739 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace YayExtra;
3
4 defined( 'ABSPATH' ) || exit;
5
6 add_action( 'network_admin_notices', 'YayExtra\\YayeDeactiveNotice' );
7 add_action( 'admin_notices', 'YayExtra\\YayeDeactiveNotice' );
8
9 function YayeDeactiveNotice() {
10 if ( current_user_can( 'activate_plugins' ) ) {
11 ?>
12 <div class="notice notice-error is-dismissible">
13 <p>
14 <strong><?php esc_html_e( 'It looks like you have another YayExtra version installed, please delete it before activating this new version. All current settings and data are still preserved.', 'yayextra' ); ?>
15 <a href=""><?php esc_html_e( 'Read more details.', 'yayextra' ); ?></a>
16 </strong>
17 </p>
18 </div>
19 <?php
20 if ( isset( $_GET['activate'] ) ) {
21 unset( $_GET['activate'] );
22 }
23 }
24 }
25