Plugin Directory

Changeset 3151081


Ignore:
Timestamp:
09/12/2024 10:46:25 PM (19 months ago)
Author:
nuagelab
Message:
  • Make filenames lowercase
  • Tested up to WordPress 6.6.2. More than 100+ stable active installs.
Location:
safe-attachment-names/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • safe-attachment-names/trunk/readme.txt

    r2868371 r3151081  
    44Tags: admin, attachment, accents, administration, latin, special characters, attachments
    55Requires at least: 5.0
    6 Tested up to: 6.1.1
     6Tested up to: 6.6.2
    77Stable tag: trunk
    88License: GPLv2 or later
     9License URI: https://www.gnu.org/licenses/gpl-2.0.html
     10Requires PHP: 7.0
    911
    1012Automatically detect and change the name of attachments containing special characters such as accented letters.
     
    1618This plugin automatically detects and changes the name of attachments containing special characters such as accented letters.
    1719
    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".
     20For 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".
    1921
    2022= Features =
     
    2426= Feedback =
    2527* 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 Twitter
    2728* Follow us on [our Facebook page](https://www.facebook.com/pages/NuageLab/150091288388352)
    2829* 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/)
    3230
    3331== Installation ==
     
    5755
    5856== Changelog ==
     57= 1.0.1 =
     58* Make filenames lowercase
     59* Tested up to WordPress 6.6.2. More than 100+ stable active installs.
     60
    5961= 1.0.0 =
    6062* Tested up to WordPress 4.6.0. More than 100+ stable active installs.
  • safe-attachment-names/trunk/safe-attachment-names.php

    r1476935 r3151081  
    55Description: Automatically detect and change the name of attachments containing special characters such as accented letters.
    66Author: NuageLab <wordpress-plugins@nuagelab.com>
    7 Version: 1.0.0
     7Version: 1.0.1
    88License: GPLv2 or later
    99Author URI: http://www.nuagelab.com/wordpress-plugins
     
    278278        }
    279279       
    280         $fn3 = $this->stripAccents($fn1);
     280        $fn3 = strtolower($this->stripAccents($fn1));
    281281        $parts = explode('/', $fn3);
    282282        foreach ($parts as &$part) $part = preg_replace('/[^a-zA-Z0-9\-_\.]+/','_',$part);
Note: See TracChangeset for help on using the changeset viewer.