[Plugin: Thumbnail For Excerpts] Problem with the images name
I’ve found a problem with images name. If the image you upload to a post has one or more dashes full image will be shown n excerpt instead of correctly created thumb. For example:
myphoto.jpg –> shows thumb -OK!.
my-photo.jpg –> shows full -wrong!
This is because next sentence in PHP code:
preg_match_all('~(\w*)-([0-9]*)x([0-9]*).('.$type.')~', $src, $matches);
Here $src = my-photo-www-hhh.jpg (www=width, hhh=height).
According to this sentence the program gets “photo” as second match, when it should be “my-photo”. So the question is: does anybody know to fix this sentence so it gets ALL before the LAST dash?
Thanks a lot.
- The topic ‘[Plugin: Thumbnail For Excerpts] Problem with the images name’ is closed to new replies.