Ticket #9955: 9955.diff
| File 9955.diff, 2.5 KB (added by Denis-de-Bernardy, 4 years ago) |
|---|
-
wp-includes/functions.php
2616 2616 } else { 2617 2617 $wp_smiliessearch .= '|'; 2618 2618 } 2619 $wp_smiliessearch .= preg_quote($rest );2619 $wp_smiliessearch .= preg_quote($rest, '/'); 2620 2620 } 2621 2621 2622 2622 $wp_smiliessearch .= ')(?:\s|$)/m'; -
wp-includes/shortcodes.php
173 173 function get_shortcode_regex() { 174 174 global $shortcode_tags; 175 175 $tagnames = array_keys($shortcode_tags); 176 $tagregexp = join( '|', array_map('preg_quote', $tagnames) ); 176 static $lamda; 177 if ( !isset($lambda) ) 178 $lambda = create_function('$in', 'return preg_quote($in, "/");'); 179 $tagregexp = join( '|', array_map($lambda, $tagnames) ); 177 180 178 181 return '(.?)\[('.$tagregexp.')\b(.*?)(?:(\/))?\](?:(.+?)\[\/\2\])?(.?)'; 179 182 } -
wp-includes/formatting.php
74 74 } 75 75 76 76 function wptexturize_pushpop_element($text, &$stack, $disabled_elements, $opening = '<', $closing = '>') { 77 $o = preg_quote($opening );78 $c = preg_quote($closing );77 $o = preg_quote($opening, '/'); 78 $c = preg_quote($closing, '/'); 79 79 foreach($disabled_elements as $element) { 80 80 if (preg_match('/^'.$o.$element.'\b/', $text)) array_push($stack, $element); 81 81 if (preg_match('/^'.$o.'\/'.$element.$c.'/', $text)) { -
xmlrpc.php
3293 3293 3294 3294 $p = explode( "\n\n", $linea ); 3295 3295 3296 $preg_target = preg_quote($pagelinkedto );3296 $preg_target = preg_quote($pagelinkedto, '|'); 3297 3297 3298 3298 foreach ( $p as $para ) { 3299 3299 if ( strpos($para, $pagelinkedto) !== false ) { // it exists, but is it a link? … … 3315 3315 $excerpt= str_replace($context[0], $marker, $excerpt); // swap out the link for our marker 3316 3316 $excerpt = strip_tags($excerpt, '<wpcontext>'); // strip all tags but our context marker 3317 3317 $excerpt = trim($excerpt); 3318 $preg_marker = preg_quote($marker );3318 $preg_marker = preg_quote($marker, '|'); 3319 3319 $excerpt = preg_replace("|.*?\s(.{0,100}$preg_marker.{0,100})\s.*|s", '$1', $excerpt); 3320 3320 $excerpt = strip_tags($excerpt); // YES, again, to remove the marker wrapper 3321 3321 break;
