roots / trellis

WordPress LEMP stack with PHP 8.2, Composer, WP-CLI and more
https://roots.io/trellis/
MIT License
2.51k stars 607 forks source link

Exempt from `is-installed` check the DB error dump PHP warning for not yet set up multisite sites #1391

Closed strarsis closed 2 years ago

strarsis commented 2 years ago

This PR changes the recently added stderr exemption of a specific PHP warning from the WP CLI wp core is-installed command for multisite sites to the DB error dump that occurs with not yet set up multisite sites.

This eliminates the need for letting the WP CLI require a temporary PHP file with constants that disable the multisite feature, which itself caused fatal PHP errors in recent WordPress/Bedrock/Trellis setups where those multisite constants where redefined in the Bedrock application config.

Initial deployment of multisite sites will successfully complete and allow finalization of the site setup (by using the WP CLI, web GUI setup process, importing a database dump/transfer uploads/data files, etc).