Ticket #8986: fix_preg_replaces.diff
File fix_preg_replaces.diff, 1.5 KB (added by , 15 years ago) |
---|
-
wp-includes/post-template.php
607 607 $current_page = 0; 608 608 609 609 // sanitize, mostly to keep spaces out 610 $r['exclude'] = preg_replace(' [^0-9,]', '', $r['exclude']);610 $r['exclude'] = preg_replace('/[^0-9,]/', '', $r['exclude']); 611 611 612 612 // Allow plugins to filter an array of excluded pages 613 613 $r['exclude'] = implode(',', apply_filters('wp_list_pages_excludes', explode(',', $r['exclude']))); -
wp-includes/class-phpmailer.php
1409 1409 */ 1410 1410 function EncodeQ ($str, $position = 'text') { 1411 1411 /* There should not be any EOL in the string */ 1412 $encoded = preg_replace(" [\r\n]", '', $str);1412 $encoded = preg_replace("/[\r\n]/", '', $str); 1413 1413 1414 1414 switch (strtolower($position)) { 1415 1415 case 'phrase': -
wp-includes/formatting.php
1960 1960 * @return string 1961 1961 */ 1962 1962 function tag_escape($tag_name) { 1963 $safe_tag = strtolower( preg_replace(' [^a-zA-Z_:]', '', $tag_name) );1963 $safe_tag = strtolower( preg_replace('/[^a-zA-Z_:]/', '', $tag_name) ); 1964 1964 return apply_filters('tag_escape', $safe_tag, $tag_name); 1965 1965 } 1966 1966