Plugin Directory

Changeset 1324440


Ignore:
Timestamp:
01/09/2016 04:34:54 AM (10 years ago)
Author:
andtrev
Message:

updating and tagging version 1.0.1

Location:
tuxedo-big-file-uploads
Files:
3 edited
5 copied

Legend:

Unmodified
Added
Removed
  • tuxedo-big-file-uploads/tags/1.0.1/readme.txt

    r1323828 r1324440  
    44Requires at least: 3.4
    55Tested up to: 4.4.1
    6 Stable tag: 1.0
     6Stable tag: 1.0.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4848== Changelog ==
    4949
     50= 1.0.1 =
     51* Added fallback if the file info extension is missing.
     52
    5053= 1.0 =
    5154* Initial release.
  • tuxedo-big-file-uploads/tags/1.0.1/tux_handle_upload.php

    r1323828 r1324440  
    2929    function mime_content_type( $filename ) {
    3030
    31         $finfo = finfo_open( FILEINFO_MIME );
    32         $mimetype = finfo_file( $finfo, $filename );
    33         finfo_close( $finfo );
    34         return $mimetype;
     31        if ( function_exists( 'finfo_open' ) ) {
     32            $finfo = finfo_open( FILEINFO_MIME );
     33            $mimetype = finfo_file( $finfo, $filename );
     34            finfo_close( $finfo );
     35            return $mimetype;
     36        } else {
     37            ob_start();
     38            system( 'file -i -b ' . $filename );
     39            $output = ob_get_clean();
     40            $output = explode( '; ', $output );
     41            if ( is_array( $output ) ) {
     42                $output = $output[0];
     43            }
     44            return $output;
     45        }
    3546
    3647    }
  • tuxedo-big-file-uploads/tags/1.0.1/tuxedo_big_file_uploads.php

    r1323828 r1324440  
    44 * Plugin URI:  https://github.com/andtrev/Tuxedo-Big-File-Uploads
    55 * Description: Enables large file uploads in the built-in WordPress media uploader.
    6  * Version:     1.0
     6 * Version:     1.0.1
    77 * Author:      Trevor Anderson
    88 * Author URI:  https://github.com/andtrev
     
    2626 *
    2727 * @package TuxedoBigFileUploads
    28  * @version 1.0.0
     28 * @version 1.0.1
    2929 */
    3030
  • tuxedo-big-file-uploads/trunk/readme.txt

    r1323828 r1324440  
    44Requires at least: 3.4
    55Tested up to: 4.4.1
    6 Stable tag: 1.0
     6Stable tag: 1.0.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4848== Changelog ==
    4949
     50= 1.0.1 =
     51* Added fallback if the file info extension is missing.
     52
    5053= 1.0 =
    5154* Initial release.
  • tuxedo-big-file-uploads/trunk/tux_handle_upload.php

    r1323828 r1324440  
    2929    function mime_content_type( $filename ) {
    3030
    31         $finfo = finfo_open( FILEINFO_MIME );
    32         $mimetype = finfo_file( $finfo, $filename );
    33         finfo_close( $finfo );
    34         return $mimetype;
     31        if ( function_exists( 'finfo_open' ) ) {
     32            $finfo = finfo_open( FILEINFO_MIME );
     33            $mimetype = finfo_file( $finfo, $filename );
     34            finfo_close( $finfo );
     35            return $mimetype;
     36        } else {
     37            ob_start();
     38            system( 'file -i -b ' . $filename );
     39            $output = ob_get_clean();
     40            $output = explode( '; ', $output );
     41            if ( is_array( $output ) ) {
     42                $output = $output[0];
     43            }
     44            return $output;
     45        }
    3546
    3647    }
  • tuxedo-big-file-uploads/trunk/tuxedo_big_file_uploads.php

    r1323828 r1324440  
    44 * Plugin URI:  https://github.com/andtrev/Tuxedo-Big-File-Uploads
    55 * Description: Enables large file uploads in the built-in WordPress media uploader.
    6  * Version:     1.0
     6 * Version:     1.0.1
    77 * Author:      Trevor Anderson
    88 * Author URI:  https://github.com/andtrev
     
    2626 *
    2727 * @package TuxedoBigFileUploads
    28  * @version 1.0.0
     28 * @version 1.0.1
    2929 */
    3030
Note: See TracChangeset for help on using the changeset viewer.