Skip to content

Commit

Permalink
replace esc_attr_e() with esc_attr()
Browse files Browse the repository at this point in the history
  • Loading branch information
ramiy committed Aug 26, 2016
1 parent 968650c commit 9a2f35d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion includes/admin/customers/customers.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ function give_customers_view( $customer ) {

<div id="customer-name-wrap" class="left">
<span class="customer-id">#<?php echo $customer->id; ?></span>
<span class="customer-name info-item edit-item"><input size="15" data-key="name" name="customerinfo[name]" type="text" value="<?php esc_attr_e( $customer->name ); ?>" placeholder="<?php esc_attr_e( 'Donor Name', 'give' ); ?>" /></span>
<span class="customer-name info-item edit-item"><input size="15" data-key="name" name="customerinfo[name]" type="text" value="<?php esc_attr( $customer->name ); ?>" placeholder="<?php esc_attr_e( 'Donor Name', 'give' ); ?>" /></span>
<span class="customer-name info-item editable"><span data-key="name"><?php echo $customer->name; ?></span></span>
</div>
<p class="customer-since info-item">
Expand Down
2 changes: 1 addition & 1 deletion includes/forms/widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public function form( $instance ){

?><p>
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php esc_html_e( 'Title:', 'give' ); ?></label>
<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php esc_attr_e( $instance['title'] ); ?>" /><br>
<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php esc_attr( $instance['title'] ); ?>" /><br>
<small><?php esc_html_e( 'Leave blank to hide the widget title.', 'give' ); ?></small>
</p><?php

Expand Down

0 comments on commit 9a2f35d

Please sign in to comment.