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

Rename the temp config file correctly and remove wp-admin/.php files #673

Merged
merged 1 commit into from
May 26, 2019

Conversation

donnchawp
Copy link
Contributor

The rename created a file called ".php" in wp-admin before writing to
the configuration file. The file is empty but this patch adds a fixer
function to delete it and also fixes the rename.

Reported:
https://wordpress.org/support/topic/php-notice-undefined-variable-13/
https://wordpress.org/support/topic/wp-super-cache-created-a-stray-php/

The rename created a file called ".php" in wp-admin before writing to
the configuration file. The file is empty but this patch adds a fixer
function to delete it and also fixes the rename.

Reported:
https://wordpress.org/support/topic/php-notice-undefined-variable-13/
https://wordpress.org/support/topic/wp-super-cache-created-a-stray-php/
Copy link

@CGastrell CGastrell left a comment

Choose a reason for hiding this comment

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

:shipit:

@donnchawp donnchawp merged commit fdc9e91 into master May 26, 2019
@donnchawp donnchawp deleted the fix_rename_filename branch May 26, 2019 18:23
iandunn added a commit to WordPress/wordcamp.org that referenced this pull request Jul 4, 2019
This is a new flag that WPSC adds after it has deleted the file it mistakenly added in `v1.6.4`. Having this in the config prevents `wpsc_fix_164()` from touching the filesystem on every `wp-admin` request.

See Automattic/wp-super-cache#673.
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.

2 participants