| @@ -683,9 +683,10 @@ | ||
| 683 | 683 | $this->_chart->post_status = 'publish'; |
| 684 | 684 | |
| 685 | 685 | // ensure that a revision is not created. If a revision is created it will have the proper data and the parent of the revision will have default data. |
| 686 | 686 | // we do not want any difference in data so disable revisions temporarily. |
| 687 | - add_filter( 'wp_revisions_to_keep', '__return_false' ); | |
| 687 | + $this->disableRevisionsTemporarily(); | |
| 688 | + | |
| 688 | 689 | wp_update_post( $this->_chart->to_array() ); |
| 689 | 690 | } |
| 690 | 691 | // save meta data only when it is NOT being canceled. |
| 691 | 692 | if ( ! ( isset( $_POST['cancel'] ) && 1 === intval( $_POST['cancel'] ) ) ) { |