Skip to content

Commit

Permalink
fix: incorrectly looking for delete_transient instead of delete_option
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronware committed Sep 17, 2020
1 parent fadf993 commit d100bce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Controller/Admin/Settings/General.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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();
}

Expand Down

0 comments on commit d100bce

Please # to comment.