Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#21867 closed enhancement (fixed)

Move wp_max_upload_size and wp_convert_hr_to_bytes to wp-includes

Reported by: koopersmith's profile koopersmith Owned by: koopersmith's profile koopersmith
Milestone: 3.5 Priority: normal
Severity: normal Version: 3.5
Component: Media Keywords: has-patch
Focuses: Cc:


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)

21867.patch (3.0 KB) - added by johnjamesjacoby 12 years ago.

Download all attachments as: .zip

Change History (3)

#1 @wonderboymusic
12 years ago

  • Keywords has-patch added

#2 @koopersmith
12 years ago

  • Owner set to koopersmith
  • Resolution set to fixed
  • Status changed from new to closed

In [22073]:

Move wp_max_upload_size and dependencies to wp-includes. props johnjamesjacoby. see #21390, fixes #21867.

Note: See TracTickets for help on using tickets.