feat: sanitize media filenames according to global slug setting (#3315)

This commit is contained in:
Stéphane Klein
2020-02-25 19:12:11 +01:00
committed by GitHub
parent 2675e1dff5
commit 8874769b31
3 changed files with 101 additions and 34 deletions

View File

@ -156,7 +156,9 @@ show_preview_links: false
## Slug Type
The `slug` option allows you to change how filenames for entries are created and sanitized. For modifying the actual data in a slug, see the per-collection option below.
The `slug` option allows you to change how filenames for entries are created and sanitized.
It also applies to filenames of media inserted via the default media library.
For modifying the actual data in a slug, see the per-collection option below.
`slug` accepts multiple options: