You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If user uploads an image with its filename having non-ascii characters,
the output <meta property="og:image"> would have its content un-encoded,
which leads social websites (such as Facebook) ignore the tag.
How to reproduce the bug
Steps to reproduce the behavior:
Have a file with non-ascii character in its name.
Upload the file with WordPress native interface.
Use the URL of the image as a social image of some page/post, or the site.
Describe the bug
If user uploads an image with its filename having non-ascii characters,
the output
<meta property="og:image">
would have itscontent
un-encoded,which leads social websites (such as Facebook) ignore the tag.
How to reproduce the bug
Steps to reproduce the behavior:
Expected behavior
Non-ascii characters shall be encoded into RFC 3986 format.
Additional context
I append the following codes to my
functions.php
in theme directory to work around:The text was updated successfully, but these errors were encountered: