[wp-trac] [WordPress Trac] #20481: Single quotes transformed to double quotes in post_content
WordPress Trac
wp-trac at lists.automattic.com
Wed Apr 18 14:33:56 UTC 2012
#20481: Single quotes transformed to double quotes in post_content
--------------------------+-----------------------------
Reporter: mfields | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version: 3.4
Severity: normal | Keywords: needs-patch
--------------------------+-----------------------------
When {{{WPLANG}}} is set to use certain non-English languages single
quotes are converted to double quotes when displayed via
{{{the_content()}}}. I think that the issue may have been introduced with
[19795], but I am not certain about this. Here are steps to reproduce:
* Export the Swedish .mo file from
[http://translate.wordpress.org/projects/wp/dev/sv/default GlotPress] and
save it to wp-content/languages as sv_FI.mo.
* Set {{{define ('WPLANG', 'sv_FI' );}}} in wp-config.php.
* Create a new post using the content from the attached test data (quotes-
test-data.txt).
* Publish the post and view in the the theme.
At this point you should notice that many of the single quotes have been
converted to double.
I've only observed this when WordPress uses the Swedish .mo files. I have
not tested in any other non-English languages. English does not appear to
be affected.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20481>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list