Make WordPress Core


Ignore:
Timestamp:
03/29/2006 01:51:55 AM (19 years ago)
Author:
ryan
Message:

AJAX, cause you love it. Props mdawaffe. fixes #2561

File:
1 edited

Legend:

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

    r3641 r3660  
    102102    $text = str_replace('<', '&lt;', $text);
    103103    $text = str_replace('>', '&gt;', $text);
    104     if ( $quotes ) {
     104    if ( 'double' === $quotes ) {
     105        $text = str_replace('"', '&quot;', $text);
     106    } elseif ( $quotes ) {
    105107        $text = str_replace('"', '&quot;', $text);
    106108        $text = str_replace("'", '&#039;', $text);
Note: See TracChangeset for help on using the changeset viewer.