Disallow spaces in attachment slugs
Slugs shouldn't have spaces. It also interferes with using slugs in shortcodes.
This commit is contained in:
@@ -7,7 +7,7 @@ _file_embedded_schema = {
|
||||
}
|
||||
}
|
||||
|
||||
ATTACHMENT_SLUG_REGEX = '[a-zA-Z0-9_]+'
|
||||
ATTACHMENT_SLUG_REGEX = r'[a-zA-Z0-9_\-]+'
|
||||
|
||||
attachments_embedded_schema = {
|
||||
'type': 'dict',
|
||||
|
Reference in New Issue
Block a user