Advertisement
BakerMan

Correction to prevent translations from breaking JS

Nov 4th, 2013
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Find this line in events-calendar-pro/admin-views/event-meta-options.php
  2. // (should be line 64):
  3. if(confirm('<?php _e('Are you sure you wish to remove this field and its data from all events? Once you click OK this cannot be undone.','tribe-events-calendar-pro'); ?>')) {
  4.  
  5. // Replace with:
  6. if(confirm('<?php echo esc_js( __('Are you sure you wish to remove this field and its data from all events? Once you click OK this cannot be undone.','tribe-events-calendar-pro') ); ?>')) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement