WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/25/2008 07:21:11 PM (12 years ago)
Author:
matt
Message:

First pass at async upload, multi-upload, and gallery feature. Modified names from patch. Hat tip: tellyworth, skeltoac.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r6606 r6659  
    746746}
    747747
    748 function wp_import_upload_form( $action ) {
     748function wp_max_upload_size() {
    749749    $u_bytes = wp_convert_hr_to_bytes( ini_get( 'upload_max_filesize' ) );
    750750    $p_bytes = wp_convert_hr_to_bytes( ini_get( 'post_max_size' ) );
    751     $bytes = apply_filters( 'import_upload_size_limit', min($u_bytes, $p_bytes), $u_bytes, $p_bytes );
     751    $bytes = apply_filters( 'upload_size_limit', min($u_bytes, $p_bytes), $u_bytes, $p_bytes );
     752    return $bytes;
     753}
     754
     755function wp_import_upload_form( $action ) {
     756    $bytes = apply_filters( 'import_upload_size_limit', wp_max_upload_size() );
    752757    $size = wp_convert_bytes_to_hr( $bytes );
    753758?>
Note: See TracChangeset for help on using the changeset viewer.