From d100bceefa3e5f67b94be35d04b376b7c9ae0bed Mon Sep 17 00:00:00 2001 From: Aaron Ware Date: Thu, 17 Sep 2020 10:20:22 -0400 Subject: [PATCH] fix: incorrectly looking for delete_transient instead of delete_option --- src/Controller/Admin/Settings/General.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Controller/Admin/Settings/General.php b/src/Controller/Admin/Settings/General.php index 38724006..57403356 100644 --- a/src/Controller/Admin/Settings/General.php +++ b/src/Controller/Admin/Settings/General.php @@ -13,7 +13,6 @@ exit; } -use CourierNotices\Controller\Admin\Fields\Fields as Fields; use CourierNotices\Core\View; use CourierNotices\Helper\Type_List_Table as Type_List_Table; @@ -143,7 +142,7 @@ public static function create_section( $args ) { public static function settings_init() { // If we have save our settings flush the rewrite rules for our new structure. - if ( delete_transient( 'courier_notices_flush_rewrite_rules' ) ) { + if ( delete_option( 'courier_notices_flush_rewrite_rules' ) ) { flush_rewrite_rules(); }