Plugin Directory

Changeset 2668998


Ignore:
Timestamp:
01/29/2022 08:59:54 PM (4 years ago)
Author:
mrpritchett
Message:

Update to version 1.2.3 from GitHub

Location:
sendwp
Files:
4 added
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • sendwp/assets/icon-128x128.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • sendwp/assets/icon-256x256.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • sendwp/tags/1.2.3/includes/admin/views/menu.html.php

    r2198929 r2668998  
    3333
    3434<p>
    35     <strong>Questions?</strong> Get help at <a href="https://sendwp.com/account/get-help">https://sendwp.com/account/get-help</a>
     35    <strong>Questions?</strong> Get help at <a href="https://sendwp.com/support">https://sendwp.com/support</a>
    3636</p>
    3737
     
    5555</div>
    5656
     57<form action="<?php echo admin_url('admin-post.php'); ?>" method="post">
     58    <input type="hidden" name="action" value="sendwp_reset_plugin_data">
     59    <?php wp_nonce_field('reset_sendwp_data' . sendwp_get_client_secret()); ?>
     60
     61    <input class="button button-link" style="margin: 8px 0 0;" type="submit" value="Reset Security Hash">
     62</form>
     63
     64
    5765</div>
    5866<!-- end of main content -->
  • sendwp/tags/1.2.3/includes/functions.php

    r2582938 r2668998  
    106106}
    107107
     108
     109function sendwp_get_hash()
     110{
     111    return sendwp_generate_hash();
     112}
     113
    108114function sendwp_generate_hash()
    109115{
     
    203209    return get_option('_transient_sendwp_pulse_monitor', 'unknown');
    204210}
     211
     212function sendwp_reset_all_plugin_data()
     213{
     214    if (check_admin_referer('reset_sendwp_data' . sendwp_get_client_secret())) {
     215        $options = [
     216            'sendwp_client_secret',
     217        ];
     218
     219        foreach ($options as $option) {
     220            if (get_option($option, false) !== false) {
     221                delete_option($option);
     222            }
     223        }
     224
     225        sendwp_set_client_secret(sendwp_generate_secret());
     226    }
     227
     228    wp_redirect(sendwp_get_client_redirect());
     229
     230    exit;
     231}
     232add_action( 'admin_post_sendwp_reset_plugin_data', 'sendwp_reset_all_plugin_data' );
  • sendwp/tags/1.2.3/readme.txt

    r2595343 r2668998  
    44Tags: forms, email, transactional
    55Requires at least: 5.1
    6 Tested up to: 5.8
     6Tested up to: 5.9
    77Requires PHP: 5.6.0
    8 Stable Tag: 1.1
     8Stable Tag: 1.2.2
    99License: GPLv2 or later
    1010
     
    3131== Upgrade Notice ==
    3232
    33 = 1.1 =
     33= 1.2 =
    3434
    35 * Small Updates
     35* Adds ability to reset local security secret in the admin.
     36* Deletes plugin data when plugin is deactivated.
    3637
    3738== Changelog ==
     39
     40= 1.2 =
     41
     42* Adds ability to reset local security secret in the admin.
     43* Deletes plugin data when plugin is deactivated.
    3844
    3945= 1.1 =
  • sendwp/tags/1.2.3/sendwp.php

    r2595343 r2668998  
    44 * Plugin Name: SendWP
    55 * Description: The easy solution to transactional email in WordPress.
    6  * Version: 1.1
     6 * Version: 1.2.2
    77 * Requires PHP: 5.6
    88 */
     
    2727
    2828require_once plugin_dir_path(__FILE__) . 'includes/activation.php';
     29require_once plugin_dir_path(__FILE__) . 'includes/deactivation.php';
  • sendwp/trunk/includes/admin/views/menu.html.php

    r2198929 r2668998  
    3333
    3434<p>
    35     <strong>Questions?</strong> Get help at <a href="https://sendwp.com/account/get-help">https://sendwp.com/account/get-help</a>
     35    <strong>Questions?</strong> Get help at <a href="https://sendwp.com/support">https://sendwp.com/support</a>
    3636</p>
    3737
     
    5555</div>
    5656
     57<form action="<?php echo admin_url('admin-post.php'); ?>" method="post">
     58    <input type="hidden" name="action" value="sendwp_reset_plugin_data">
     59    <?php wp_nonce_field('reset_sendwp_data' . sendwp_get_client_secret()); ?>
     60
     61    <input class="button button-link" style="margin: 8px 0 0;" type="submit" value="Reset Security Hash">
     62</form>
     63
     64
    5765</div>
    5866<!-- end of main content -->
  • sendwp/trunk/includes/functions.php

    r2582938 r2668998  
    106106}
    107107
     108
     109function sendwp_get_hash()
     110{
     111    return sendwp_generate_hash();
     112}
     113
    108114function sendwp_generate_hash()
    109115{
     
    203209    return get_option('_transient_sendwp_pulse_monitor', 'unknown');
    204210}
     211
     212function sendwp_reset_all_plugin_data()
     213{
     214    if (check_admin_referer('reset_sendwp_data' . sendwp_get_client_secret())) {
     215        $options = [
     216            'sendwp_client_secret',
     217        ];
     218
     219        foreach ($options as $option) {
     220            if (get_option($option, false) !== false) {
     221                delete_option($option);
     222            }
     223        }
     224
     225        sendwp_set_client_secret(sendwp_generate_secret());
     226    }
     227
     228    wp_redirect(sendwp_get_client_redirect());
     229
     230    exit;
     231}
     232add_action( 'admin_post_sendwp_reset_plugin_data', 'sendwp_reset_all_plugin_data' );
  • sendwp/trunk/readme.txt

    r2595343 r2668998  
    44Tags: forms, email, transactional
    55Requires at least: 5.1
    6 Tested up to: 5.8
     6Tested up to: 5.9
    77Requires PHP: 5.6.0
    8 Stable Tag: 1.1
     8Stable Tag: 1.2.2
    99License: GPLv2 or later
    1010
     
    3131== Upgrade Notice ==
    3232
    33 = 1.1 =
     33= 1.2 =
    3434
    35 * Small Updates
     35* Adds ability to reset local security secret in the admin.
     36* Deletes plugin data when plugin is deactivated.
    3637
    3738== Changelog ==
     39
     40= 1.2 =
     41
     42* Adds ability to reset local security secret in the admin.
     43* Deletes plugin data when plugin is deactivated.
    3844
    3945= 1.1 =
  • sendwp/trunk/sendwp.php

    r2595343 r2668998  
    44 * Plugin Name: SendWP
    55 * Description: The easy solution to transactional email in WordPress.
    6  * Version: 1.1
     6 * Version: 1.2.2
    77 * Requires PHP: 5.6
    88 */
     
    2727
    2828require_once plugin_dir_path(__FILE__) . 'includes/activation.php';
     29require_once plugin_dir_path(__FILE__) . 'includes/deactivation.php';
Note: See TracChangeset for help on using the changeset viewer.