Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use post abstraction to override content. #988

Merged
merged 23 commits into from
Jan 8, 2023

Conversation

peterwilsoncc
Copy link
Collaborator

@peterwilsoncc peterwilsoncc commented Dec 19, 2022

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
includes/hooks.php Outdated Show resolved Hide resolved
@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