Conversation
bbfa5c3 to
52882ba
Compare
db120e1 to
d1d018b
Compare
|
Multiple inheritance patterns like this could get pretty messy down the road. If a set of related helper methods are needed for specific modules, what do you think about using a trait instead? https://www.php.net/manual/en/language.oop5.traits.php |
|
@WPprodigy Sure, I don't have a strong stance on the OOP mechanisms. Traits seem less arduous so I'm good with that |
d1d018b to
77d4fc2
Compare
|
Looking better. I have a couple of thoughts:
Then configure_settings_page() would contain secondary level conditionals to control output: After level 1 ( The benefit to this type of cleanup will be that we can clearly read from the top down (outline->chapter->paragraph), and decisions on whether or not something needs to be loaded will be more obvious. |
514bc96 to
601624c
Compare
601624c to
0348c3e
Compare
@WPprodigy agreed, could use some TLC. I think a series of PR's would make things easier. Can move and rearrange a little bit at the time, first by focusing on separating module settings page stuff and non-settings page module stuff. So you'd end up with something like and go from there (separating it out more as needed) |
|
Closing this PR as it's been stale for over 6 years and the codebase has evolved significantly since then. Thank you to @cojennin and @justnorris for the work on this, and to @WPprodigy for the thoughtful review feedback. The core problem (asset scoping) is already solved in the current codebase — assets are properly scoped via The improvements this PR proposed (reusable trait, cleaner |
This is based on work from @justnorris in #487.
It continues the work of scoping module assets. It reintroduces the
EF_Module_With_Viewclass from #487, but holds off on deprecatingis_whitelisted_functional_viewandis_whitelisted_settings_view(which will be deprecated once all modules have been migrated).It also introduces a small change to
Block_Editor_Compatible, enabling the registering/de-registering of multiple actions for the same hookAlso, holding off on altering any usages of
disable_custom_statuses_for_post_typefor this PR, as it caused issues with the original PR