[wp-trac] [WordPress Trac] #22692: Quotes Are Messing Up

WordPress Trac noreply at wordpress.org
Mon Apr 8 22:36:11 UTC 2013


#22692: Quotes Are Messing Up
------------------------------------------+------------------------------
 Reporter:  miqrogroove                   |       Owner:
     Type:  defect (bug)                  |      Status:  new
 Priority:  normal                        |   Milestone:  Awaiting Review
Component:  Formatting                    |     Version:  3.4.2
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |
------------------------------------------+------------------------------

Comment (by miqrogroove):

 Oops.  Fixed it.  The PCRE_UTF8 modifier forces identical output on both
 servers.

 {{{
 $dynamic[ '/(\s|\A|[([{<])"(?!\s)/u'   ] = '$1' . $opening_quote . '$2';
 $dynamic[ '/"(\s|\S|\Z)/u'             ] = $closing_quote . '$1';
 }}}

 I would think that's safe to do as long as everyone is using UTF-8.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22692#comment:20>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list