#22280 closed enhancement (wontfix)
Correcting class-http.php to use WordPress naming conventions
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | minor | Version: | 3.5 |
Component: | Formatting | Keywords: | has-patch |
Focuses: | Cc: |
Description
WordPress convention is to use underscores versus camelCase. I have changed the names of all the functions to adhere to WordPress standards.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
While this is our convention, it is too late for these to change, as these are all publicly accessible methods that plugins may be referencing directly. Note that renaming the methods themselves wouldn't be enough either way, as we'd need to update where they are called as well.
We *could* solve this with
__call()
but some of these are static methods, which means we'd needcallStatic()
in PHP 5.3. Ultimately, using magic methods to rename a few methods for standards reasons is a bit overkill anyway.