Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
3 | function jetpack_vaultpress_rewind_enabled_notice() { |
||
4 | $plugin_file = 'vaultpress/vaultpress.php'; |
||
5 | |||
6 | deactivate_plugins( $plugin_file ); |
||
7 | ?> |
||
8 | <div class="notice notice-success"> |
||
9 | <h2 style="margin-bottom: 0.25em;"><?php _e( 'Jetpack is now handling your backups.', 'jetpack' ); ?></h2> |
||
10 | <p><?php _e( 'VaultPress is no longer needed and has been deactivated.', 'jetpack' ); ?></p> |
||
11 | </div> |
||
12 | <?php |
||
13 | } |
||
14 | |||
26 | add_action( 'admin_init', 'jetpack_vaultpress_rewind_check', 11 ); |