Plugin Directory

Changeset 2666302


Ignore:
Timestamp:
01/26/2022 07:26:36 PM (4 years ago)
Author:
rinatkhaziev
Message:

Merge 1.3.4 from Github

Location:
frontend-uploader/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • frontend-uploader/trunk/frontend-uploader.php

    r2653253 r2666302  
    44Description: Allow your visitors to upload content and moderate it.
    55Author: Rinat Khaziev, Daniel Bachhuber
    6 Version: 1.3.3
     6Version: 1.3.4
    77Author URI: https://rinat.dev/
    88Text Domain: frontend-uploader
     
    2929
    3030// Define consts and bootstrap and dependencies
    31 define( 'FU_VERSION', '1.3.3' );
     31define( 'FU_VERSION', '1.3.4' );
    3232define( 'FU_ROOT' , dirname( __FILE__ ) );
    3333define( 'FU_FILE_PATH' , FU_ROOT . '/' . basename( __FILE__ ) );
     
    156156    function _get_mime_types() {
    157157        // $mime_types_orig is needed to re-map the values from the settings lib structure to core WP extension regex => mime-type format.
     158        remove_filter( 'upload_mimes', [ $this, '_get_mime_types' ], 999 );
    158159        $mime_types = $mime_types_orig = get_allowed_mime_types();
     160        add_filter( 'upload_mimes', [ $this, '_get_mime_types' ], 999 );
    159161
    160162        $enabled = isset( $this->settings['enabled_files'] ) && is_array( $this->settings['enabled_files'] ) && $this->settings['enabled_files'] ? $this->settings['enabled_files'] : $mime_types;
     
    173175        unset( $enabled['htm|html'] );
    174176        unset( $enabled['js'] );
     177        unset( $enabled['svg|svgz'] );
    175178
    176179        /**
     
    179182         */
    180183        $mime_types = apply_filters( 'fu_allowed_mime_types', $enabled );
     184
    181185
    182186        return $mime_types;
  • frontend-uploader/trunk/readme.txt

    r2653247 r2666302  
    66Requires PHP: 7.2
    77Tested up to: 5.9
    8 Stable tag: 1.3.3
     8Stable tag: 1.3.4
    99License: GPLv2 or later
    1010
     
    401401== Changelog ==
    402402
     403= 1.3.4 (Jan 26, 2022) =
     404* Bugfix: the new allow type logic resulted in an infinite loop in some cases
     405
    403406= 1.3.3 (Aug 28, 2021) =
    404407* Re-worked the way file type allow list works
Note: See TracChangeset for help on using the changeset viewer.