Block styles not rendered in frontend when using ajax page refreshing after updating to version 3.2.0 #9673
Labels
type-bug
workflow-needs-replication
workflow-pending-triage
Items that need to be triaged and reviewed before they are worked on.
Bug Report
Expected behavior
My site uses ajax page refreshing and prior to version 3.2.0 block styles rendered with no issue in a non-block based theme.
Actual behavior
When using ajax to navigate to pages with blocks in a non-block based theme, the layout is not applied as the function should_let_wp_manage_styles() in includes\blocks\includes\styles.php does not contain a way to override the default page checking action. It would be better to allow non-block based themes to override the should_let_wp_manage_styles() and any other associated functions to account for use cases where the styles should be rendered by default either on the first load or on template_redirect/init. An apply_filters or similar on the return of the function(s) would allow developers to decide other circumstances where block styles should load.
Information (if a specific version is affected):
PHP Version: 7.4
EDD Version (or branch): 3.2.0
WordPress Version: 6.3.1
Any other relevant information:
These recent changes to the way block styles render are preventing me from updating to the latest version as there is no hook to override the default behaviour and render the styles as they did prior to 3.2.0
The text was updated successfully, but these errors were encountered: