Opened 11 years ago
Closed 11 years ago
#34488 closed enhancement (fixed)
REST API: Save some preg_match iterations
| Reported by: | TobiasBg | Owned by: | wonderboymusic |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.4 |
| Component: | REST API | Version: | 4.4 |
| Severity: | normal | Keywords: | has-patch needs-testing |
| Cc: | Focuses: |
Description
In the WP_REST_Server, a preg_match call and an if-check can be moved one level of for-loops up.
It doesn't depend on the $handler variable nor is it modified in the inner for-loop, so that this would save some preg_match/REGEXP iterations.
Also see https://wordpress.slack.com/archives/core-restapi/p1446136013000935.
Attachments (1)
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 35514: