-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update: Simplify base-php sapi_handle_request call (#387)
<!-- Thanks for contributing to WordPress Playground! --> ## What? <!-- In a few words, what is the PR actually doing? Include screenshots or screencasts if applicable --> We decided to split #331 into two parts, to make changes clear. Part 1 of #331 Part 2 is #388 This pr simplifies the logic of `#handleRequest` method by removing unnecessary async wrapping ## Why? It was originally introduced in #331, where a 404 page for nonexisting files was introduced, in order to simplify things. For more info, look at #331 <!-- Why is this PR necessary? What problem is it solving? Reference any existing previous issue(s) or PR(s), but please add a short summary here, too --> ## How? - By removing the `async` function. `async` functions return a promise by themselves and also `resolve` method is able to resolve nested promises if they returned correctly. So the original `async` function wasn't really necessary <!-- How is your PR addressing the issue at hand? What are the implementation details? --> ## Testing Instructions N/A
- Loading branch information
Showing
2 changed files
with
97 additions
and
20 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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