开发者 | Sparanoid |
---|---|
更新时间 | 2021年8月12日 02:25 |
捐献地址: | 去捐款 |
PHP版本: | 4.0 及以上 |
WordPress版本: | 5.8 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
wp-config.php
, I recommend WP-CLI for maintaining these constants.
MAHR_LENGTH
: length of the random hashes, (default to 8
), longer can help reduce collision. Hashes at the length of 8 can be collision-free at the scale of 50,000 images).MAHR_CHARS
: Characters used in hashes, default to 0123456789abcdefghijklmnopqrstuvwxyz_
, You can add more characters like uppercased alphabelts to dramatically reduce the collision without increasing the length of your filenames. But please note that this option can be dangerous if you're not familer with general URI encoding. So if you don't know what characters are allowed in a filename, just keep it untouched and use the default option.MAHR_IGNORE
: File extensions to be ignored, default to pdf, zip
, you can define a comma delimited list of file extensions to bypass renaming process of this plugin. All files that has the file extension you defined in the list will be ignored. Please note that:'pdf, 7z, bmp'
works, '.pdf, .7z, .bmp'
does not.'pdf, zip'
) or without ('pdf,zip'
) space both work.'7z'
, then 'pdf, zip'
will be processed during upload. You need to reapply these extensions with your own: '7z, pdf, zip'
.[]
(without quotes) to this option: define( 'MAR_IGNORE', [] );
to force process PDF and ZIP files./wp-content/plugins/
directory, or just install this plugin from your WordPress backend.This pluigin, doesn't not write any extra data into your database. The files renamed by this plugin will still work after you deactivate this plugin.