esc_textarea() run
This commit is contained in:
parent
7674bbe60e
commit
184da2ced6
|
@ -195,7 +195,7 @@ function woocommerce_admin_fields($options) {
|
|||
?><tr valign="top">
|
||||
<th scope="row" class="titledesc"><?php echo $value['name'] ?></th>
|
||||
<td class="forminp">
|
||||
<textarea <?php if ( isset($value['args']) ) echo $value['args'] . ' '; ?>name="<?php echo esc_attr( $value['id'] ); ?>" id="<?php echo esc_attr( $value['id'] ); ?>" style="<?php echo esc_attr( $value['css'] ); ?>"><?php if (get_option($value['id'])) echo stripslashes(get_option($value['id'])); else echo $value['std']; ?></textarea> <span class="description"><?php echo $value['desc'] ?></span>
|
||||
<textarea <?php if ( isset($value['args']) ) echo $value['args'] . ' '; ?>name="<?php echo esc_attr( $value['id'] ); ?>" id="<?php echo esc_attr( $value['id'] ); ?>" style="<?php echo esc_attr( $value['css'] ); ?>"><?php if (get_option($value['id'])) echo esc_textarea(stripslashes(get_option($value['id']))); else echo esc_textarea( $value['std'] ); ?></textarea> <span class="description"><?php echo $value['desc'] ?></span>
|
||||
</td>
|
||||
</tr><?php
|
||||
break;
|
||||
|
|
|
@ -80,7 +80,7 @@ function woocommerce_order_data_meta_box($post) {
|
|||
</select></p>
|
||||
|
||||
<p class="form-field"><label for="excerpt"><?php _e('Customer Note:', 'woothemes') ?></label>
|
||||
<textarea rows="1" cols="40" name="excerpt" tabindex="6" id="excerpt" placeholder="<?php _e('Customer\'s notes about the order', 'woothemes'); ?>"><?php echo $post->post_excerpt; ?></textarea></p>
|
||||
<textarea rows="1" cols="40" name="excerpt" tabindex="6" id="excerpt" placeholder="<?php _e('Customer\'s notes about the order', 'woothemes'); ?>"><?php echo esc_textarea( $post->post_excerpt ); ?></textarea></p>
|
||||
</div>
|
||||
<div id="order_customer_billing_data" class="panel woocommerce_options_panel"><?php
|
||||
woocommerce_wp_text_input( array( 'id' => '_billing_first_name', 'label' => __('First Name', 'woothemes') ) );
|
||||
|
|
|
@ -321,7 +321,7 @@ class woocommerce_checkout {
|
|||
|
||||
$field = '<p class="form-row '.implode(' ', $args['class']).'">
|
||||
<label for="'.$key.'" class="'.implode(' ', $args['label_class']).'">'.$args['label'].$required.'</label>
|
||||
<textarea name="'.$key.'" class="input-text" id="'.$key.'" placeholder="'.$args['placeholder'].'" cols="5" rows="2">'. $this->get_value( $key ).'</textarea>
|
||||
<textarea name="'.$key.'" class="input-text" id="'.$key.'" placeholder="'.$args['placeholder'].'" cols="5" rows="2">'. esc_textarea( $this->get_value( $key ) ).'</textarea>
|
||||
</p>'.$after;
|
||||
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue