Changeset 6659 for trunk/wp-admin/includes/template.php
- Timestamp:
- 01/25/2008 07:21:11 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r6606 r6659 746 746 } 747 747 748 function wp_ import_upload_form( $action) {748 function wp_max_upload_size() { 749 749 $u_bytes = wp_convert_hr_to_bytes( ini_get( 'upload_max_filesize' ) ); 750 750 $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 755 function wp_import_upload_form( $action ) { 756 $bytes = apply_filters( 'import_upload_size_limit', wp_max_upload_size() ); 752 757 $size = wp_convert_bytes_to_hr( $bytes ); 753 758 ?>
Note: See TracChangeset
for help on using the changeset viewer.