Make WordPress Core

Changeset 10459


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

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

Location:
trunk/wp-includes
Files:
3 edited

Legend:

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

    r8801 r10459  
    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)) {
  • trunk/wp-includes/formatting.php

    r10398 r10459  
    19611961 */
    19621962function 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) );
    19641964    return apply_filters('tag_escape', $safe_tag, $tag_name);
    19651965}
  • trunk/wp-includes/post-template.php

    r10339 r10459  
    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.