Changeset 2666302
- Timestamp:
- 01/26/2022 07:26:36 PM (4 years ago)
- Location:
- frontend-uploader/trunk
- Files:
-
- 2 edited
-
frontend-uploader.php (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
frontend-uploader/trunk/frontend-uploader.php
r2653253 r2666302 4 4 Description: Allow your visitors to upload content and moderate it. 5 5 Author: Rinat Khaziev, Daniel Bachhuber 6 Version: 1.3. 36 Version: 1.3.4 7 7 Author URI: https://rinat.dev/ 8 8 Text Domain: frontend-uploader … … 29 29 30 30 // Define consts and bootstrap and dependencies 31 define( 'FU_VERSION', '1.3. 3' );31 define( 'FU_VERSION', '1.3.4' ); 32 32 define( 'FU_ROOT' , dirname( __FILE__ ) ); 33 33 define( 'FU_FILE_PATH' , FU_ROOT . '/' . basename( __FILE__ ) ); … … 156 156 function _get_mime_types() { 157 157 // $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 ); 158 159 $mime_types = $mime_types_orig = get_allowed_mime_types(); 160 add_filter( 'upload_mimes', [ $this, '_get_mime_types' ], 999 ); 159 161 160 162 $enabled = isset( $this->settings['enabled_files'] ) && is_array( $this->settings['enabled_files'] ) && $this->settings['enabled_files'] ? $this->settings['enabled_files'] : $mime_types; … … 173 175 unset( $enabled['htm|html'] ); 174 176 unset( $enabled['js'] ); 177 unset( $enabled['svg|svgz'] ); 175 178 176 179 /** … … 179 182 */ 180 183 $mime_types = apply_filters( 'fu_allowed_mime_types', $enabled ); 184 181 185 182 186 return $mime_types; -
frontend-uploader/trunk/readme.txt
r2653247 r2666302 6 6 Requires PHP: 7.2 7 7 Tested up to: 5.9 8 Stable tag: 1.3. 38 Stable tag: 1.3.4 9 9 License: GPLv2 or later 10 10 … … 401 401 == Changelog == 402 402 403 = 1.3.4 (Jan 26, 2022) = 404 * Bugfix: the new allow type logic resulted in an infinite loop in some cases 405 403 406 = 1.3.3 (Aug 28, 2021) = 404 407 * Re-worked the way file type allow list works
Note: See TracChangeset
for help on using the changeset viewer.