Cyrillic filenames in ver.1.4.3
-
Hi, I have a lot of files with ukrainian and russian names. Everything was fine until update to ver. 1.4.3.
Anyone couldn’t download new files. I’ve found that files are saved with proper names, but their names were saved as utf8 encode in database.
1-д._вузи-финиш-04.14.xls -> 1-\u0434._\u0432\u0443\u0437\u0438-\u0444\u0438\u043d\u0438\u0448-04.14.xlsI’ve found that json_encode does such change. Following changes helped me:
go to /wp-content/plugins/download-monitor/includes/admin/class-dlm-admin-writepanels.php
line 464
replace:
update_post_meta( $file_id, '_files', json_encode( $files ) );
with:
update_post_meta( $file_id, '_files', json_encode( $files, JSON_UNESCAPED_UNICODE ) );
Please, take a look at this issue and find proper solution to cyrillic file names.
If you need additional information, don’t hesitate to ask.
Thank you.
- The topic ‘Cyrillic filenames in ver.1.4.3’ is closed to new replies.