-
Notifications
You must be signed in to change notification settings - Fork 132
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
Scope module assets for custom status #565
base: master
Are you sure you want to change the base?
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) |
This is based on work from @justnorris in #487.
It continues the work of scoping module assets. It reintroduces the
EF_Module_With_View
class from #487, but holds off on deprecatingis_whitelisted_functional_view
andis_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_type
for this PR, as it caused issues with the original PR