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

Invalidate wp_core_block_css_files transient when files' path and includes path doesn't match #5112

Closed
wants to merge 1 commit into from

Conversation

petitphp
Copy link

Alternative solution for 59111 based on the comment 17 from spacedmonkey.

This PR add a check after getting the value for the wp_core_block_css_files transient, to verify that the start of the files' path match the current includes path.

Trac ticket: https://core.trac.wordpress.org/ticket/59111


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

Copy link
Member

@mukeshpanchal27 mukeshpanchal27 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @petitphp for the PR. LGTM!

@spacedmonkey spacedmonkey self-requested a review September 5, 2023 15:14
@petitphp
Copy link
Author

petitphp commented Sep 6, 2023

Closing in favor of #5052 (already merged).

@petitphp petitphp closed this Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants