Gallery image with file-name that is_numeric() displays 'attachment' in URL
|Reported by:||na3s||Owned by:|
|Component:||Administration||Keywords:||gallery, image, attachment, url, upload|
This issue with the gallery came to my attention while helping another wordpress member (CelestialGraffiti) troubleshoot an issue of a bug in the Image Gallery feature. If a user uploads an image with a file-name that is *only* numeric characters, it will display the file as an 'attachment' in the URL; ie sitename.tld/category/page/attachment/1/. However, if the image contains any Alpha characters, the appended 'attachment' is left out of the URL, and is formatted in the intended manor.
This can cause problems in the template; ie: inconsistently showing a 'Comment Form' or other argumentative template elements.
This is a minor issue, but one that is important to address to maintain consistent behavior with the gallery.