[wp-trac] [WordPress Trac] #21867: Move wp_max_upload_size and wp_convert_hr_to_bytes to wp-includes

WordPress Trac wp-trac at lists.automattic.com
Mon Sep 10 23:22:11 UTC 2012


#21867: Move wp_max_upload_size and wp_convert_hr_to_bytes to wp-includes
-------------------------+-------------------
 Reporter:  koopersmith  |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  3.5
Component:  Media        |    Version:  trunk
 Severity:  normal       |   Keywords:
-------------------------+-------------------
 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).

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21867>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list