Plugin Directory

Changeset 3775351


Ignore:
Timestamp:
10/30/2026 01:31:32 PM (2 days ago)
Author:
puppytranslator
Message:

1.0.1: nonce on the CSV export link, uninstall removes the activity log.

Location:
puppytranslator-records-import/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • puppytranslator-records-import/trunk/includes/class-puppytranslator-admin.php

    r3766711 r3775351  
    2727                                <button type="submit" class="button"><?php echo esc_html__( 'Filter', 'puppytranslator-records-import' ); ?></button>
    2828                                <a class="button button-secondary" href="<?php echo esc_url( admin_url( 'admin.php?page=puppytranslator-import' ) ); ?>"><?php echo esc_html__( 'Import data', 'puppytranslator-records-import' ); ?></a>
    29                                 <a class="button button-secondary" href="<?php echo esc_url( admin_url( 'admin-post.php?action=puppytranslator_export' ) ); ?>"><?php echo esc_html__( 'Export CSV', 'puppytranslator-records-import' ); ?></a>
     29                                <a class="button button-secondary" href="<?php echo esc_url( wp_nonce_url( admin_url( 'admin-post.php?action=puppytranslator_export' ), 'puppytranslator_export' ) ); ?>"><?php echo esc_html__( 'Export CSV', 'puppytranslator-records-import' ); ?></a>
    3030                        </form>
    3131                        <table class="widefat striped">
  • puppytranslator-records-import/trunk/includes/class-puppytranslator-importer.php

    r3766711 r3775351  
    158158                        wp_die( esc_html__( 'You do not have permission to export records.', 'puppytranslator-records-import' ), 403 );
    159159                }
     160                check_admin_referer( 'puppytranslator_export' );
    160161                $rows   = Puppytranslator_Records::export_all();
    161162                $header = array( 'name', 'email', 'source', 'created' );
  • puppytranslator-records-import/trunk/languages/puppytranslator-records-import.pot

    r3766711 r3775351  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: PuppyTranslator Records Importer 1.0.0\n"
     5"Project-Id-Version: PuppyTranslator Records Importer 1.0.1\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/puppytranslator-records-import\n"
    7 POT-Creation-Date: 2026-10-16 08:43+0000\n
     7"POT-Creation-Date: 2026-10-26 15:47+0000\n"
    88"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    99"Language-Team: LANGUAGE <LL@li.org>\n"
  • puppytranslator-records-import/trunk/puppytranslator-records-import.php

    r3766711 r3775351  
    44 * Plugin URI:        https://wordpress.org/plugins/puppytranslator-records-import/
    55 * Description:       Bulk-import CSV and JSON data into a fast, searchable records table with column mapping, validation and CSV export.
    6  * Version:           1.0.0
     6 * Version:           1.0.1
    77 * Requires at least: 5.6
    88 * Requires PHP:      7.4
    … …  
    1919        exit;
    2020}
    21 define( 'PUPPYTRANSLATOR_VERSION', '1.0.0' );
     21define( 'PUPPYTRANSLATOR_VERSION', '1.0.1' );
    2222define( 'PUPPYTRANSLATOR_PLUGIN_FILE', __FILE__ );
    2323define( 'PUPPYTRANSLATOR_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
  • puppytranslator-records-import/trunk/readme.txt

    r3766711 r3775351  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 1.0.0
     7Stable tag: 1.0.1
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    6262== Changelog ==
    6363
     64= 1.0.1 =
     65* Security: the CSV export link is now nonce-protected so a third page can no
     66  longer trigger a download on an author's behalf.
     67* The activity-log option is removed when the plugin is uninstalled.
     68
    6469= 1.0.0 =
    6570* Initial release.
  • puppytranslator-records-import/trunk/uninstall.php

    r3766711 r3775351  
    99// Remove the saved options.
    1010delete_option( 'puppytranslator_profiles' );
     11delete_option( 'puppytranslator_last_import' );
Note: See TracChangeset for help on using the changeset viewer.