| 1 |
<?php |
| 2 |
|
| 3 |
defined( 'ABSPATH' ) || exit; |
| 4 |
add_action( |
| 5 |
'admin_notices', |
| 6 |
function() { |
| 7 |
if ( current_user_can( 'activate_plugins' ) ) { |
| 8 |
?> |
| 9 |
<div class="notice notice-error is-dismissible"> |
| 10 |
<p> |
| 11 |
<strong><?php esc_html_e( 'It looks like you have another Contact Form 7 Database version installed, please delete it before activating this new version. All of the settings and data are still preserved.', 'cf7-database' ); ?></strong> |
| 12 |
</p> |
| 13 |
</div> |
| 14 |
<?php |
| 15 |
if ( isset( $_GET['activate'] ) ) { |
| 16 |
unset( $_GET['activate'] ); |
| 17 |
} |
| 18 |
} |
| 19 |
} |
| 20 |
); |
| 21 |
|