Plugin Directory

Changeset 2549531


Ignore:
Timestamp:
06/17/2021 08:30:19 AM (5 years ago)
Author:
elasticemail
Message:

Update 1.2.1

Location:
elastic-email-subscribe-form/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • elastic-email-subscribe-form/trunk/elasticemailsubscribe.php

    r2546202 r2549531  
    2424    /*
    2525     * Plugin Name: Elastic Email Subscribe Form
    26      * Version: 1.2
     26     * Version: 1.2.1
    2727     * Plugin URI: https://wordpress.org/plugins/elastic-email-subscribe-form/
    2828     * Description: This plugin add subscribe widget to your page and integration with Elastic Email account.
     
    7171    }
    7272
     73    function wp_upe_upgrade_completed( $upgrader_object, $options ) {
     74        $our_plugin = plugin_basename( __FILE__ );
     75        if( $options['action'] == 'update' && $options['type'] == 'plugin' && isset( $options['plugins'] ) ) {
     76         foreach( $options['plugins'] as $plugin ) {
     77          if( $plugin == $our_plugin ) {
     78            if (get_option('ee_mimetype') === false ) {
     79                update_option('ee_mimetype', 'auto');
     80            }
     81          }
     82         }
     83        }
     84    }
     85   
     86    add_action( 'upgrader_process_complete', 'wp_upe_upgrade_completed', 10, 2 );
     87   
    7388    function elasticemailsubscribe_activate()
    7489    {
  • elastic-email-subscribe-form/trunk/readme.txt

    r2546202 r2549531  
    9898== Changelog ==
    9999
     100= 1.2.1 =
     101* Fix: Update MIME type after update
     102
    100103= 1.2 =
    101104* Fix: MIME types and transactional message type
Note: See TracChangeset for help on using the changeset viewer.