Skip to content

Conversation

@kraftbj
Copy link

Defensive coding to avoid an error when trying to file_get_contents of a directory.

I think this is an incomplete solution, though, as why is a directory being passed. This would at least prevent the PHP warning.

Trac ticket: https://core.trac.wordpress.org/ticket/49979


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.

@SergeyBiryukov
Copy link
Member

Thanks for the PR! Closing for now, as the associated Trac ticket has been closed.

Sign up for freeto 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

@kraftbj@SergeyBiryukov