Admin Context: Fix PHP fatals when admin.php has CRLF line endings by xknown · Pull Request #5875 · wp-cli/wp-cli
If `wp-admin/admin.php` has CRLF line endings, running `wp --context=admin` with any command results in a PHP fatal error because the regular expression to strip the wp-load.php require statement Fixes wp-cli#5844 Props @willrowe for the regex fix.
xknown
deleted the
fix/context-admin-php-fatal
branch
xknown
restored the
fix/context-admin-php-fatal
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters