Make WordPress Core

Changeset 10460


Ignore:
Timestamp:
01/29/2009 05:46:48 PM (16 years ago)
Author:
ryan
Message:

Add missing preg delimiters. Props ridgerunner. fixes #8986 for 2.7

Location:
branches/2.7/wp-includes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.7/wp-includes/class-phpmailer.php

    r8801 r10460  
    14101410  function EncodeQ ($str, $position = 'text') {
    14111411    /* There should not be any EOL in the string */
    1412     $encoded = preg_replace("[\r\n]", '', $str);
     1412    $encoded = preg_replace("/[\r\n]/", '', $str);
    14131413
    14141414    switch (strtolower($position)) {
  • branches/2.7/wp-includes/formatting.php

    r10399 r10460  
    19311931 */
    19321932function tag_escape($tag_name) {
    1933     $safe_tag = strtolower( preg_replace('[^a-zA-Z_:]', '', $tag_name) );
     1933    $safe_tag = strtolower( preg_replace('/[^a-zA-Z_:]/', '', $tag_name) );
    19341934    return apply_filters('tag_escape', $safe_tag, $tag_name);
    19351935}
  • branches/2.7/wp-includes/post-template.php

    r10392 r10460  
    608608
    609609    // sanitize, mostly to keep spaces out
    610     $r['exclude'] = preg_replace('[^0-9,]', '', $r['exclude']);
     610    $r['exclude'] = preg_replace('/[^0-9,]/', '', $r['exclude']);
    611611
    612612    // Allow plugins to filter an array of excluded pages
Note: See TracChangeset for help on using the changeset viewer.