Changeset 2627104
- Timestamp:
- 11/10/2021 05:53:53 AM (4 years ago)
- Location:
- likebtn-like-button/tags/2.6.38
- Files:
-
- 2 edited
-
includes/tab_votes.php (modified) (1 diff)
-
likebtn_like_button.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
likebtn-like-button/tags/2.6.38/includes/tab_votes.php
r2626501 r2627104 645 645 <form action="<?php echo admin_url('admin-ajax.php') ?>?action=likebtn_export_votes&<?php echo $_SERVER['QUERY_STRING'] ?>" method="post" target="_blank"> 646 646 <input type="hidden" name="export" value="1" /> 647 <input type="hidden" name="nonce" value="<?php echo wp_create_nonce( 'likebtn_export_votes' ); ?>" /> 647 648 <strong><?php _e('Data to export', 'likebtn-like-button'); ?>:</strong><br/> 648 649 <label><input type="checkbox" name="fields[]" value="user" checked="checked" /> <?php _e('User Name', 'likebtn-like-button'); ?></label><br/> -
likebtn-like-button/tags/2.6.38/likebtn_like_button.php
r2626501 r2627104 2862 2862 <form action="<?php echo admin_url('admin-ajax.php') ?>?action=likebtn_export&<?php echo esc_attr($_SERVER['QUERY_STRING']) ?>" method="post" target="_blank"> 2863 2863 <input type="hidden" name="export" value="1" /> 2864 <input type="hidden" name="nonce" value="<?php echo wp_create_nonce( 'likebtn_export' ); ?>" /> 2864 2865 <strong><?php _e('Data to export', 'likebtn-like-button'); ?>:</strong><br/> 2865 2866 <label><input type="checkbox" name="fields[]" value="id" checked="checked" /> <?php _e('ID', 'likebtn-like-button'); ?></label><br/> … … 5540 5541 function likebtn_export_callback() 5541 5542 { 5542 if (!(bool)current_user_can('manage_options')) { 5543 if (!(bool)current_user_can('manage_options') 5544 || !isset($_POST['nonce']) 5545 || !wp_verify_nonce($_POST['nonce'], 'likebtn_export') 5546 ) { 5543 5547 return; 5544 5548 } … … 5614 5618 global $wpdb; 5615 5619 5616 if (!(bool)current_user_can('manage_options')) { 5620 if (!(bool)current_user_can('manage_options') 5621 || !isset($_POST['nonce']) 5622 || !wp_verify_nonce($_POST['nonce'], 'likebtn_export_votes') 5623 ) { 5617 5624 return; 5618 5625 }
Note: See TracChangeset
for help on using the changeset viewer.