Make WordPress Core

Changeset 14694


Ignore:
Timestamp:
05/16/2010 08:09:56 PM (14 years ago)
Author:
wpmuguru
Message:

observe fileupload_maxk in media uploader, see #12853

File:
1 edited

Legend:

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

    r14437 r14694  
    409409/*
    410410 * @since 3.0.0
     411 *
     412 * @return int of upload size limit in bytes
    411413 */
    412414function upload_size_limit_filter( $size ) {
    413     return min( $size, get_upload_space_available() );
     415    $fileupload_maxk = 1024 * get_site_option( 'fileupload_maxk', 1500 );
     416    return min( $size, $fileupload_maxk, get_upload_space_available() );
    414417}
    415418/**
Note: See TracChangeset for help on using the changeset viewer.