[wp-trac] [WordPress Trac] #54504: Update Requests library to version 2.0.0
WordPress Trac
noreply at wordpress.org
Thu Nov 25 15:09:36 UTC 2021
#54504: Update Requests library to version 2.0.0
-------------------------------------------------+-------------------------
Reporter: jrf | Owner:
| SergeyBiryukov
Type: task (blessed) | Status: reopened
Priority: normal | Milestone: 5.9
Component: External Libraries | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-dev-note php80 | Focuses:
php81 |
-------------------------------------------------+-------------------------
Comment (by SergeyBiryukov):
Replying to [comment:12 jrf]:
> We also considered that Requests is used by more projects than just
WordPress and that the namespace prefix should not cause undue friction in
other projects using Requests, so we ended up compromising on
`WpOrg\Requests\`.
Thanks for the context! Since PHP namespaces are case-insensitive, is
there any chance to capitalize that as `WPorg\Requests\`, so that the
capitalization of `WP` is consistent in lines like this and across the
project in genera?
{{{
new WP_REST_Request( WPorg\Requests\Requests::POST, $route );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54504#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list