Skip to content
Permalink
Browse files

Merge pull request #214 from xwp/bugfix/ensure-filter-removal

Ensure wp_insert_post_empty_content filter gets removed after trashing
  • Loading branch information...
westonruter committed Aug 6, 2016
2 parents 3339795 + 230bee4 commit f2a9eb47ff45d6f00d86d62890b06dbdbee89d49
Showing with 3 additions and 0 deletions.
  1. +3 −0 php/class-wp-customize-post-setting.php
@@ -598,6 +598,9 @@ protected function update( $data ) {
if ( $transition_to_trash ) {
$result = wp_trash_post( $this->post_id );
}
if ( $is_trashed ) {
remove_filter( 'wp_insert_post_empty_content', '__return_false', 100 );
}

0 comments on commit f2a9eb4

Please sign in to comment.
You can’t perform that action at this time.