WordPress.org

Make WordPress Core

Ticket #2761: ays_use_textarea.diff

File ays_use_textarea.diff, 966 bytes (added by markjaquith, 14 years ago)

Patch for 2.0.3 (branches/2.0)

  • wp-includes/pluggable-functions.php

     
    245245                        foreach ( (array) $q as $a ) {
    246246                                $v = substr(strstr($a, '='), 1);
    247247                                $k = substr($a, 0, -(strlen($v)+1));
    248                                 $html .= "\t\t<input type='hidden' name='" . wp_specialchars( urldecode($k), 1 ) . "' value='" . wp_specialchars( urldecode($v), 1 ) . "' />\n";
     248                                $html .= "\t\t<textarea style='display:none;' name='" . wp_specialchars( urldecode($k), 1 ) . "'>" . htmlspecialchars( stripslashes(urldecode($v)) ) . "</textarea>\n";
    249249                        }
    250250                        $html .= "\t\t<input type='hidden' name='_wpnonce' value='" . wp_create_nonce($action) . "' />\n";
    251251                        $html .= "\t\t<p>" . __('Are you sure you want to do this?') . "</p>\n\t\t<p><a href='$adminurl'>No</a> <input type='submit' value='" . __('Yes') . "' /></p>\n\t</form>\n";