Plugin Directory

Changeset 2627104


Ignore:
Timestamp:
11/10/2021 05:53:53 AM (4 years ago)
Author:
likebtn
Message:

Update

Location:
likebtn-like-button/tags/2.6.38
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • likebtn-like-button/tags/2.6.38/includes/tab_votes.php

    r2626501 r2627104  
    645645        <form action="<?php echo admin_url('admin-ajax.php') ?>?action=likebtn_export_votes&<?php echo $_SERVER['QUERY_STRING'] ?>" method="post" target="_blank">
    646646            <input type="hidden" name="export" value="1" />
     647            <input type="hidden" name="nonce" value="<?php echo wp_create_nonce( 'likebtn_export_votes' ); ?>" />
    647648            <strong><?php _e('Data to export', 'likebtn-like-button'); ?>:</strong><br/>
    648649            <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  
    28622862        <form action="<?php echo admin_url('admin-ajax.php') ?>?action=likebtn_export&<?php echo esc_attr($_SERVER['QUERY_STRING']) ?>" method="post" target="_blank">
    28632863            <input type="hidden" name="export" value="1" />
     2864            <input type="hidden" name="nonce" value="<?php echo wp_create_nonce( 'likebtn_export' ); ?>" />
    28642865            <strong><?php _e('Data to export', 'likebtn-like-button'); ?>:</strong><br/>
    28652866            <label><input type="checkbox" name="fields[]" value="id" checked="checked" /> <?php _e('ID', 'likebtn-like-button'); ?></label><br/>
     
    55405541function likebtn_export_callback()
    55415542{
    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    ) {
    55435547        return;
    55445548    }
     
    56145618    global $wpdb;
    56155619
    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    ) {
    56175624        return;
    56185625    }
Note: See TracChangeset for help on using the changeset viewer.