Thlayli
Member
Posted 6 months ago #
Line 16 needs to be:
preg_match('~.*/(.*)\.(.*?)$~', $post->guid, $file_parts);
As it is the filename "Tob.-Couns.-referral-form.pdf" only allows editing "Tob" and recognizes the rest as the extension. It looks like the regex is correct on line 98.
Apologies if I overlooked something.
http://wordpress.org/extend/plugins/media-rename/
ShadowsDweller
Member
Plugin Author
Posted 6 months ago #
Fixed. Thanks for reporting!
scalare
Member
Posted 6 months ago #
I also have trouble with this. But not in the same way as above. It actually shows the New Filename field, but in its content, it shows my domain name (without the .com), and to the right of the field, it shows .com/services/what-to-expect/what-to-expect-2, where what-to-expect-2 is the actual name of the file, and all the rest is the path to the page in which I have that image inserted (I'm using %postname% as permalink structure).
Should the plugin display the full name including domain name and path for the file, or just the file name?
I can send you a screenshot if you need to see what I see.
Thank you!
Andrés
ShadowsDweller
Member
Plugin Author
Posted 6 months ago #
Hi,
Did this issue happen on the latest version (2.0.2)? If so, please send me a screenshot.