WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/23/2009 10:10:46 PM (12 years ago)
Author:
ryan
Message:

Pass delimiter to preg_quote(). Props Denis-de-Bernardy. see #9955

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/formatting.php

    r11615 r11634  
    8181
    8282function 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, '/');
    8585    foreach($disabled_elements as $element) {
    8686        if (preg_match('/^'.$o.$element.'\b/', $text)) array_push($stack, $element);
Note: See TracChangeset for help on using the changeset viewer.