-
Notifications
You must be signed in to change notification settings - Fork 139
Fix missing ABSPATH checks in Speculation Rules plugin
#1024
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
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
I thought the root |
|
Maybe I'm thinking of what was done in #1011.
|
I initially thought this would do it, but missed to consider the important part: To publish the plugins (just like for the modules) the 10up deploy script is instructed to look at the specific plugin folder. So it'll basically be as if the root This is similar to my #1011 review I just left. cc @thelovekesh |
|
@felixarntz please check my comment here - #1011 (comment) Since we are passing |
|
To produce plugin builds, please also refer to #1008, which introduces Webpack (extending WP Script configs) and is capable of handling almost every use case. This allows us to keep utilizing a single global |
|
@thelovekesh Great point. Let's continue the discussion on how we want to solve this problem in #1008, given neither I've removed that part from this PR, so it should be good to go, only focusing on the |
.gitattributes files and ABSPATH checks in standalone pluginsABSPATH checks in Speculation Rules plugin
|
@felixarntz SGTM. Just out of curiosity, I wanted to know where |
thelovekesh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
Summary
The
speculation-rulesplugin was missing thedefined( 'ABSPATH' )checks that are sort of mandatory for plugins.Checklist
[Focus]orInfrastructurelabel.[Type]label.no milestonelabel.