-
Notifications
You must be signed in to change notification settings - Fork 794
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
Avoid creating jetpack-temp directory in WP root #19162
Conversation
I've been pwnd! Could you help me phrase a line for the changelog? |
You should be able to follow the instructions here:
|
Jeremy! That is SO HARD!!! |
@jeherve Done 🍏🍏 |
Thank you! We'll take a look and review soon. Internal reference: p1615830698055600-slack-CS8UYNPEE |
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.
Thanks for the PR. While we think that this could work, it would directly affect so many sites and we can't be sure if that it's not going to break anything. We think that an approach using a constant would work better in this case (i.e., if there is an install location constant define use that, otherwise fall back to what we have now).
All right. 👑 I leave it up to you. BTW This is the new constant: an immutable configuration. // Define constant values.
Config::init(
[
'version' => '1.0.0',
'filePath' => __FILE__,
'baseName' => plugin_basename(__FILE__),
'slug' => 'plugin-slug',
]
); https://github.com/szepeviktor/small-project/blob/master/src/Config.php |
@jeherve Friendly ping 🏓 |
I'm afraid I have no news for you. The discussion above still applies: |
Thank you for your response. I close this PR. |
Fixes #mypain
Changes proposed in this Pull Request:
Try to create jetpack-temp directory in wp-content in the first place.
Some background
I'd like to keep all installations highly clean: git + Composer + separate directory for WordPress core files.
(🖼️ file change alert notification)
So the document root contains 2 directories:
It needs 2 lines in wp-config.
https://wordpress.org/support/article/giving-wordpress-its-own-directory/
As of today Jetpack writes into core's directory (ABSPATH).
This PR prioritizes uploads and wp-content directory.