Coupon description is escaped

@claudiosmweb Closes #9273
This commit is contained in:
Mike Jolley 2015-10-05 14:30:02 +01:00
parent 42d90594af
commit 6975335941
1 changed files with 1 additions and 1 deletions

View File

@ -2066,7 +2066,7 @@ class WC_Admin_Post_Types {
public function edit_form_after_title( $post ) {
if ( 'shop_coupon' === $post->post_type ) {
?>
<textarea id="woocommerce-coupon-description" name="excerpt" cols="5" rows="2" placeholder="<?php esc_attr_e( 'Description (optional)', 'woocommerce' ); ?>"><?php echo esc_textarea( $post->post_excerpt ); ?></textarea>
<textarea id="woocommerce-coupon-description" name="excerpt" cols="5" rows="2" placeholder="<?php esc_attr_e( 'Description (optional)', 'woocommerce' ); ?>"><?php echo $post->post_excerpt; // This is already escaped in core ?></textarea>
<?php
}
}