Skip to content

Commit fd79839

Browse files
committed
Move the PL admin_notices removal to admin-notices.php
1 parent fdf1f19 commit fd79839

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

activate.php

-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ function sqlite_activation() {
4646
$pl_option = get_option( $pl_option_name, array() );
4747
unset( $pl_option['database/sqlite'] );
4848
update_option( $pl_option_name, $pl_option );
49-
remove_action( 'admin_notices', 'perflab_sqlite_plugin_admin_notice' ); // Remove the PL-plugin admin notices.
5049
}
5150
sqlite_plugin_copy_db_file();
5251
// WordPress will automatically redirect to the install screen here.

admin-notices.php

+3
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,6 @@ function sqlite_plugin_admin_notice() {
7171
);
7272
}
7373
add_action( 'admin_notices', 'sqlite_plugin_admin_notice' ); // Add the admin notices.
74+
75+
// Remove the PL-plugin admin notices for SQLite.
76+
remove_action( 'admin_notices', 'perflab_sqlite_plugin_admin_notice' );

0 commit comments

Comments
 (0)