Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:Automattic/Ad-Code-Manager
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbachhuber committed May 14, 2012
2 parents e5c2468 + 0d6bd5f commit 7c1cf0d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ad-code-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ function create_ad_code( $ad_code = array() ) {
update_post_meta( $acm_inserted_post_id, $slug, $ad_code[$slug] );
}
update_post_meta( $acm_inserted_post_id, 'priority', $ad_code['priority'] );
$this->flush_cache();
return $acm_inserted_post_id;
}
return false;
Expand Down Expand Up @@ -444,6 +445,7 @@ function edit_ad_code( $ad_code_id, $ad_code = array()) {
function delete_ad_code( $ad_code_id ) {
if ( 0 !== $ad_code_id ) {
wp_delete_post( $ad_code_id , true ); //force delete post
$this->flush_cache();
return true;
}
return;
Expand Down

0 comments on commit 7c1cf0d

Please sign in to comment.