My theme cannot override my plugin CSS because it’s loaded before the plugins. Is this a bug or a permanent change (2.4.1)?
Hmm yes, you’re right. We load core, then themes, then plugins
I think core → plugins → themes would be a better order, and would match the pre-plugin-debundling behaviour. What do you think @awesomerobot @Johani @jordan-vidrine?
@WorldIsMine a workaround is to increase the specificity of theme’s CSS.
Yeah that sounds like a better order to me too!
Prior to 2.4 applying changes to theme CSS worked, so is this considered an unintentional bug?
Thank you, I will look into this.
Plugin CSS used to be all bundled up together, and loaded after the core stylesheets. So yes, this is an unintentional side-effect of us debundling it. I think we can backport this fix to stable, it is very low risk. I don’t think anyone will be relying on this behaviour.
Opened a PR here:
When is a realistic time frame when this change will go into effect? I have lots plugins on my instance and spend the last two days upgrading things so they’re compatible with 2.4.1 and this is the only nuisance keeping me from upgrading
I just merged it to master, planning to backport to beta and stable in the next hour (unless there are issues)
(Edit: bit delayed due to some unrelated test issues, but will get it backported ASAP)
You guys rock! <3 Thank you very much for the quick support.
Took a little longer than planned, but that’s done on stable, beta and tests-passed. Head to /admin/upgrade
and update to the latest version to get the fixed behaviour.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.