Changeset 28717 for trunk/src/wp-includes/functions.php
- Timestamp:
- 06/10/2014 02:02:23 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r28712 r28717 2714 2714 krsort($wpsmiliestrans); 2715 2715 2716 $wp_smiliessearch = '/((?:\s|^)'; 2716 $spaces = wp_spaces_regexp(); 2717 2718 // Begin first "subpattern" 2719 $wp_smiliessearch = '/(?<=' . $spaces . '|^)'; 2717 2720 2718 2721 $subchar = ''; … … 2724 2727 if ($firstchar != $subchar) { 2725 2728 if ($subchar != '') { 2726 $wp_smiliessearch .= ')(?=\s|$))|((?:\s|^)'; ; 2729 $wp_smiliessearch .= ')(?=' . $spaces . '|$)'; // End previous "subpattern" 2730 $wp_smiliessearch .= '|(?<=' . $spaces . '|^)'; // Begin another "subpattern" 2727 2731 } 2728 2732 $subchar = $firstchar; … … 2734 2738 } 2735 2739 2736 $wp_smiliessearch .= ')(?= \s|$))/m';2740 $wp_smiliessearch .= ')(?=' . $spaces . '|$)/m'; 2737 2741 2738 2742 }
Note: See TracChangeset
for help on using the changeset viewer.