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

1526 - Replace file get contents #1898

Merged
merged 3 commits into from
Mar 27, 2021
Merged

Conversation

joshdarby
Copy link
Collaborator

Originally submitted by @omnisite as PR #1815.

Replace file_get_contents with WP_Filesystem

Changes

This pull request makes the following changes:

  • replaced @file_get_contents with WP_Filesystem

Why

Because you should never use @ and it is better to use native WP functions if they exist (over plain PHP).

For issue #1526

Steps to test this PR:

  1. Go to you personal page in wp-admin and upload/change an avatar (not the gravatar one, but the avatar found at the bottom of the page)

@joshdarby joshdarby added hacktoberfest community contribution type: tech debt For necessary updates because code is old category: clean up unused code/clean up items labels Mar 27, 2021
@joshdarby joshdarby self-assigned this Mar 27, 2021
@joshdarby joshdarby changed the title 1526 replace file get contents 1526 - Replace file get contents Mar 27, 2021
@joshdarby joshdarby added this to In progress in 0.7 PR review board Mar 27, 2021
@joshdarby joshdarby merged commit cd07b63 into trunk Mar 27, 2021
@joshdarby joshdarby moved this from In progress to Done in 0.7 PR review board Mar 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: clean up unused code/clean up items community contribution hacktoberfest type: tech debt For necessary updates because code is old
Projects
Development

Successfully merging this pull request may close these issues.

None yet

1 participant