Changeset 11635
- Timestamp:
- 06/23/2009 10:11:05 PM (15 years ago)
- Location:
- branches/2.8
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.8/wp-includes/formatting.php
r11616 r11635 81 81 82 82 function wptexturize_pushpop_element($text, &$stack, $disabled_elements, $opening = '<', $closing = '>') { 83 $o = preg_quote($opening );84 $c = preg_quote($closing );83 $o = preg_quote($opening, '/'); 84 $c = preg_quote($closing, '/'); 85 85 foreach($disabled_elements as $element) { 86 86 if (preg_match('/^'.$o.$element.'\b/', $text)) array_push($stack, $element); -
branches/2.8/wp-includes/functions.php
r11598 r11635 2683 2683 $wp_smiliessearch .= '|'; 2684 2684 } 2685 $wp_smiliessearch .= preg_quote($rest );2685 $wp_smiliessearch .= preg_quote($rest, '/'); 2686 2686 } 2687 2687 -
branches/2.8/xmlrpc.php
r11625 r11635 3301 3301 $p = explode( "\n\n", $linea ); 3302 3302 3303 $preg_target = preg_quote($pagelinkedto );3303 $preg_target = preg_quote($pagelinkedto, '|'); 3304 3304 3305 3305 foreach ( $p as $para ) { … … 3323 3323 $excerpt = strip_tags($excerpt, '<wpcontext>'); // strip all tags but our context marker 3324 3324 $excerpt = trim($excerpt); 3325 $preg_marker = preg_quote($marker );3325 $preg_marker = preg_quote($marker, '|'); 3326 3326 $excerpt = preg_replace("|.*?\s(.{0,100}$preg_marker.{0,100})\s.*|s", '$1', $excerpt); 3327 3327 $excerpt = strip_tags($excerpt); // YES, again, to remove the marker wrapper
Note: See TracChangeset
for help on using the changeset viewer.