Skip to content

Check for readablity of WordPress core files#4626

Merged
schlessera merged 2 commits intowp-cli:masterfrom
websupporter:check-for-readablity
Jan 23, 2018
Merged

Check for readablity of WordPress core files#4626
schlessera merged 2 commits intowp-cli:masterfrom
websupporter:check-for-readablity

Conversation

@websupporter
Copy link
Contributor

Hi,
this PR checks for the existing of WordPress with file_exists( ABSPATH . '/wp-includes/version.php' ) and in a separate check for the readability of this file.

This way, we can give a more precise error message. If its a readability problem, this PR sends It seems, the WordPress core files do not have the proper file permissions. and otherwise the known error message.

This solves #4594

Thank you :)

@schlessera schlessera merged commit dbd105d into wp-cli:master Jan 23, 2018
@schlessera schlessera changed the title Check for readablity of WordPress core files (solves #4594) Check for readablity of WordPress core files Jan 23, 2018
@schlessera
Copy link
Member

Thanks for the PR, @websupporter !

@gitlost
Copy link
Contributor

gitlost commented Jan 30, 2018

Just noting we never added tests for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants