Skip to content

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

Closed
petitphp wants to merge 1 commit intoWordPress:trunkfrom
petitphp:issue/59111-2
Closed

Invalidate wp_core_block_css_files transient when files' path and includes path doesn't match#5112
petitphp wants to merge 1 commit intoWordPress:trunkfrom
petitphp:issue/59111-2

Conversation

@petitphp
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants