10up / curator

Select specific posts from across multiple post types to combine together and control the ordering.
38 stars 7 forks source link

Fix/curated post title #31

Closed ayebare closed 8 years ago

ayebare commented 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

AaronHolbrook commented 8 years ago

@ayebare tests are failing - mind fixing?

ayebare commented 8 years ago

@AaronHolbrook, have fixed the failing checks.