Make WordPress Core

Changeset 3710


Ignore:
Timestamp:
04/17/2006 11:33:08 PM (18 years ago)
Author:
ryan
Message:

Escape single quotes in options.php. fixes #2656

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options.php

    r3566 r3710  
    9696
    9797foreach ($options as $option) :
    98     $value = wp_specialchars($option->option_value);
     98    $value = wp_specialchars($option->option_value, 'single');
    9999    echo "
    100100<tr>
  • trunk/wp-includes/functions-formatting.php

    r3686 r3710  
    104104    if ( 'double' === $quotes ) {
    105105        $text = str_replace('"', '&quot;', $text);
     106    } elseif ( 'single' === $quotes ) {
     107        $text = str_replace("'", '&#039;', $text);
    106108    } elseif ( $quotes ) {
    107109        $text = str_replace('"', '&quot;', $text);
Note: See TracChangeset for help on using the changeset viewer.