Opened 14 years ago
Closed 14 years ago
#21867 closed enhancement (fixed)
Move wp_max_upload_size and wp_convert_hr_to_bytes to wp-includes
| Reported by: | koopersmith | Owned by: | koopersmith |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.5 |
| Component: | Media | Version: | 3.5 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
Generating defaults for the wp.Uploader bridge calls wp_max_upload_size(), which in turn calls wp_convert_hr_to_bytes(). Both are currently located in wp-admin/includes/template.php. If they are moved to wp-includes, we will be able to use WordPress-specific uploaders on the front end (instead of causing fatal errors when creating the default settings).
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 [22073]: