Skip to content

Commit

Permalink
When database has updated, the notice is unset
Browse files Browse the repository at this point in the history
  • Loading branch information
seb86 committed Dec 17, 2023
1 parent 42f7c4e commit c90e320
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion includes/admin/class-cocart-admin-notices.php
Expand Up @@ -7,7 +7,7 @@
* @author Sébastien Dumont
* @package CoCart\Admin\Notices
* @since 1.2.0
* @version 3.2.0
* @version 3.10.0
* @license GPL-2.0+
*/

Expand Down Expand Up @@ -378,6 +378,8 @@ public static function update_db_notice() {
}
} else {
include COCART_ABSPATH . 'includes/admin/views/html-notice-updated.php';
self::remove_notice( 'update_db', true );
update_user_meta( get_current_user_id(), 'dismissed_cocart_update_db_notice', true );
}
} // END update_db_notice()

Expand Down

0 comments on commit c90e320

Please sign in to comment.