Skip to content

Use post abstraction to override content.#988

Merged
peterwilsoncc merged 23 commits into
developfrom
do/use-post-abstraction
Jan 8, 2023
Merged

Use post abstraction to override content.#988
peterwilsoncc merged 23 commits into
developfrom
do/use-post-abstraction

Conversation

@peterwilsoncc

@peterwilsoncc peterwilsoncc commented Dec 19, 2022

Copy link
Copy Markdown
Collaborator

Description of the Change

Removes duplicated code in the various connections to make use of the DistributorPost class.

While this removes the duplication of code, it adds a lot of test so there is a net gain of about 1500 lines of code.

Closes #989

How to test the Change

Changelog Entry

Changed - Removed duplicate code modifying post/author meta data.

Credits

Props @peterwilsoncc

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

@peterwilsoncc peterwilsoncc self-assigned this Dec 19, 2022
@peterwilsoncc peterwilsoncc added this to the 2.0.0 milestone Dec 19, 2022
@peterwilsoncc peterwilsoncc force-pushed the do/use-post-abstraction branch from 90d9f6a to a82444a Compare December 20, 2022 00:04
@peterwilsoncc peterwilsoncc force-pushed the do/use-post-abstraction branch from 27b29f0 to 12677ad Compare December 20, 2022 04:21
Comment thread includes/hooks.php Outdated
@peterwilsoncc peterwilsoncc marked this pull request as ready for review December 22, 2022 02:36
@peterwilsoncc peterwilsoncc merged commit 85897d2 into develop Jan 8, 2023
@peterwilsoncc peterwilsoncc deleted the do/use-post-abstraction branch January 8, 2023 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

Remove duplication overriding post meta.

2 participants