Changeset 3151081
- Timestamp:
- 09/12/2024 10:46:25 PM (19 months ago)
- Location:
- safe-attachment-names/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (4 diffs)
-
safe-attachment-names.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
safe-attachment-names/trunk/readme.txt
r2868371 r3151081 4 4 Tags: admin, attachment, accents, administration, latin, special characters, attachments 5 5 Requires at least: 5.0 6 Tested up to: 6. 1.16 Tested up to: 6.6.2 7 7 Stable tag: trunk 8 8 License: GPLv2 or later 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html 10 Requires PHP: 7.0 9 11 10 12 Automatically detect and change the name of attachments containing special characters such as accented letters. … … 16 18 This plugin automatically detects and changes the name of attachments containing special characters such as accented letters. 17 19 18 For example: if a user uploads a file named "L'École de Éric Rémillard.png", the file name will be transformed and the file will be stored as " L_Ecole_de_Eric_Remillard.png".20 For example: if a user uploads a file named "L'École de Éric Rémillard.png", the file name will be transformed and the file will be stored as "l_ecole_de_eric_remillard.png". 19 21 20 22 = Features = … … 24 26 = Feedback = 25 27 * We are open for your suggestions and feedback - Thank you for using or trying out one of our plugins! 26 * Drop us a line [@nuagelab](http://twitter.com/#!/nuagelab) on Twitter27 28 * Follow us on [our Facebook page](https://www.facebook.com/pages/NuageLab/150091288388352) 28 29 * Drop us a line at [wordpress-plugins@nuagelab.com](mailto:wordpress-plugins@nuagelab.com) 29 30 = More =31 * [Also see our other plugins](http://www.nuagelab.com/products/wordpress-plugins/) or see [our WordPress.org profile page](http://profiles.wordpress.org/users/nuagelab/)32 30 33 31 == Installation == … … 57 55 58 56 == Changelog == 57 = 1.0.1 = 58 * Make filenames lowercase 59 * Tested up to WordPress 6.6.2. More than 100+ stable active installs. 60 59 61 = 1.0.0 = 60 62 * Tested up to WordPress 4.6.0. More than 100+ stable active installs. -
safe-attachment-names/trunk/safe-attachment-names.php
r1476935 r3151081 5 5 Description: Automatically detect and change the name of attachments containing special characters such as accented letters. 6 6 Author: NuageLab <wordpress-plugins@nuagelab.com> 7 Version: 1.0. 07 Version: 1.0.1 8 8 License: GPLv2 or later 9 9 Author URI: http://www.nuagelab.com/wordpress-plugins … … 278 278 } 279 279 280 $fn3 = $this->stripAccents($fn1);280 $fn3 = strtolower($this->stripAccents($fn1)); 281 281 $parts = explode('/', $fn3); 282 282 foreach ($parts as &$part) $part = preg_replace('/[^a-zA-Z0-9\-_\.]+/','_',$part);
Note: See TracChangeset
for help on using the changeset viewer.