Skip to content

Commit 7c1cf0d

Browse files
Merge branch 'develop' of github.com:Automattic/Ad-Code-Manager
2 parents e5c2468 + 0d6bd5f commit 7c1cf0d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ad-code-manager.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,7 @@ function create_ad_code( $ad_code = array() ) {
412412
update_post_meta( $acm_inserted_post_id, $slug, $ad_code[$slug] );
413413
}
414414
update_post_meta( $acm_inserted_post_id, 'priority', $ad_code['priority'] );
415+
$this->flush_cache();
415416
return $acm_inserted_post_id;
416417
}
417418
return false;
@@ -444,6 +445,7 @@ function edit_ad_code( $ad_code_id, $ad_code = array()) {
444445
function delete_ad_code( $ad_code_id ) {
445446
if ( 0 !== $ad_code_id ) {
446447
wp_delete_post( $ad_code_id , true ); //force delete post
448+
$this->flush_cache();
447449
return true;
448450
}
449451
return;

0 commit comments

Comments
 (0)