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

WordPress Trac noreply at wordpress.org
Fri Mar 28 06:39:27 UTC 2014


#22692: Quotes Are Messing Up
----------------------------------------------------+------------------
 Reporter:  miqrogroove                             |       Owner:
     Type:  defect (bug)                            |      Status:  new
 Priority:  normal                                  |   Milestone:  3.9
Component:  Formatting                              |     Version:  1.2
 Severity:  normal                                  |  Resolution:
 Keywords:  has-patch commit 3.9-early wptexturize  |     Focuses:
----------------------------------------------------+------------------

Comment (by miqrogroove):

 Executive summary of miqro-22692.14.patch:

 * new function wp_spaces_regexp()
   * Provides the chars and strings that can represent a space in regexp.
   * Adds a run-once filter for any customization needs.
 * wptexturize
   * Replaced \s sequence by wp_spaces_regexp() in regex.
   * Now quotes can be neighbors with nbsp.
   * Removed duplicate patterns and junk like {{{\s|\S}}} for performance.
   * Replaced back-reference patterns with look-behind patterns for
 performance.
   * Moved the expensive 9x9 pattern so it can be skipped when not needed.
 * shortcode_unautop
   * Replaced \s sequence by wp_spaces_regexp() in regex.
   * Now shortcodes can be neighors with nbsp.
 * translate_smiley
   * Removed extra spaces that were not be needed after fixing
 smilies_init().
 * smilies_init
   * Replaced \s sequence by wp_spaces_regexp() in regex.
   * Now smilies can be neighbors with nbsp.
   * Added a look-behind to prevent replacement of leading spaces.
   * Removed extra capturing groups for performance.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/22692#comment:85>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list