Skip to content

Commit

Permalink
Merge pull request woocommerce#3103 from kloon/master
Browse files Browse the repository at this point in the history
esc_js translatable strings for the JS
  • Loading branch information
coenjacobs committed May 6, 2013
2 parents 683d54f + ba92387 commit dcd41e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/post-types/writepanels/writepanel-order_downloads.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function woocommerce_order_downloads_meta_box() {

} else {

alert('<?php _e( 'Could not grant access - the user may already have permission for this file or billing email is not set. Ensure the billing email is set, and the order has been saved.', 'woocommerce' ); ?>');
alert('<?php echo esc_js( __( 'Could not grant access - the user may already have permission for this file or billing email is not set. Ensure the billing email is set, and the order has been saved.', 'woocommerce' ) ); ?>');

}

Expand All @@ -144,7 +144,7 @@ function woocommerce_order_downloads_meta_box() {

jQuery('.order_download_permissions').on('click', 'button.revoke_access', function(e){
e.preventDefault();
var answer = confirm('<?php _e( 'Are you sure you want to revoke access to this download?', 'woocommerce' ); ?>');
var answer = confirm('<?php echo esc_js( __( 'Are you sure you want to revoke access to this download?', 'woocommerce' ) ); ?>');
if (answer){

var el = jQuery(this).parent().parent();
Expand Down

0 comments on commit dcd41e4

Please sign in to comment.