mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-05 05:04:31 +00:00
esc_textarea() and application for obvious textarea escaping. props alexkingorg. fixes #15454
git-svn-id: https://develop.svn.wordpress.org/trunk@16431 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -201,7 +201,7 @@ foreach ( (array) $options as $option ) :
|
||||
<th scope='row'><label for='$name'>" . esc_html( $option->option_name ) . "</label></th>
|
||||
<td>";
|
||||
if ( strpos( $value, "\n" ) !== false )
|
||||
echo "<textarea class='$class' name='$name' id='$name' cols='30' rows='5'>" . wp_htmledit_pre( $value ) . "</textarea>";
|
||||
echo "<textarea class='$class' name='$name' id='$name' cols='30' rows='5'>" . esc_textarea( $value ) . "</textarea>";
|
||||
else
|
||||
echo "<input class='regular-text $class' type='text' name='$name' id='$name' value='" . esc_attr( $value ) . "'" . disabled( $disabled, true, false ) . " />";
|
||||
echo "</td>
|
||||
|
||||
Reference in New Issue
Block a user