Closed ayebare closed 8 years ago
This is from this issue https://github.com/10up/curator/issues/19 @AaronHolbrook I had to break down function save_post from curator\includes\class-cpt-curator.php into two as it had grown too coplex. The resulting smaller functions are; save_post and run_modules_on_save please see this commit https://github.com/10up/curator/commit/96998f1c3cfabd02358d91439e275504c43ca868
Then I added the function maybe_update_curated_post which synchronizes the post title between the original post and curated post on save. See commit https://github.com/10up/curator/commit/49ca26e3338d9ad131f639276318b29bbca887ca
@ayebare tests are failing - mind fixing?
@AaronHolbrook, have fixed the failing checks.
This is from this issue https://github.com/10up/curator/issues/19 @AaronHolbrook I had to break down function save_post from curator\includes\class-cpt-curator.php into two as it had grown too coplex. The resulting smaller functions are; save_post and run_modules_on_save please see this commit https://github.com/10up/curator/commit/96998f1c3cfabd02358d91439e275504c43ca868
Then I added the function maybe_update_curated_post which synchronizes the post title between the original post and curated post on save. See commit https://github.com/10up/curator/commit/49ca26e3338d9ad131f639276318b29bbca887ca