Oct 05, 2018 11:50 am
Hello.
I see that all attachments are renamed and that is ok. But is there any reason for wpForo to remove underscores (for example) ?
I mean if the photo (for example) is named "this_is_a_test_photo" it becomes "a number"-thisisatestphoto". That creates an unmeaningful file name for google.
Thanks
1 Reply
Oct 06, 2018 4:42 am
Thank you for letting us know @anonymous20. This will be fixed in next version. You can use "-" instead of "_" chars. As a temporary solution you also can edit wp-content/plugins/wpforo/wpf-includes/wpf-hooks.php file.
Find this line:
$fnm = preg_replace("/[^-a-zA-Z0-9]/", "", $fnm);
Change to this:
$fnm = preg_replace("/[^-a-zA-Z0-9_]/", "", $fnm);