Plugin Directory

Changeset 1409410


Ignore:
Timestamp:
05/03/2016 07:50:34 AM (10 years ago)
Author:
exxica
Message:

v1.2.2

Location:
exxica-social-marketing
Files:
4 edited
6 copied

Legend:

Unmodified
Added
Removed
  • exxica-social-marketing/tags/1.2.2/README.txt

    r1408734 r1409410  
    8888
    8989== Changelog ==
     90= 1.2.2 =
     91- Minor changes to the activator/deactivator.
    9092
    9193= 1.2.1 =
     
    169171
    170172== Upgrade Notice ==
     173= 1.2.2 =
     174Minor patch. Update recommended.
     175
    171176= 1.2.1 =
    172177Updated for WP 4.5.1.
  • exxica-social-marketing/tags/1.2.2/exxica-social-marketing.php

    r1408734 r1409410  
    1616 * Plugin Name:       Exxica Social Marketing
    1717 * Description:       A tool that helps you publish your WordPress posts and pages to your selected social platforms. It has been made to help planning and scheduling publications on different social platforms which again increases traffic on your website.
    18  * Version:           1.2.1
     18 * Version:           1.2.2
    1919 * Author:            Gaute Rønningen
    2020 * Author URI:        http://exxica.com/
  • exxica-social-marketing/tags/1.2.2/includes/class-exxica-social-marketing-activator.php

    r1408734 r1409410  
    3030        $sql = '';
    3131
    32         $latest_version = '1.2.1';
     32        $latest_version = '1.2.2';
    3333        $installed_version = get_option('exxica_social_marketing_version', false);
    3434
     
    3737        $statTable = $wpdb->prefix . 'exxica_social_marketing_statuses';
    3838
    39         if(!$installed_version) {
     39        if($installed_version === false) {
    4040            require_once ABSPATH.'wp-admin/includes/upgrade.php';
    4141            // ESM first time setup
    42             $sql = "CREATE TABLE IF NOT EXISTS $smTable( 
     42            $sql = "CREATE TABLE IF NOT EXISTS $smTable(
    4343              `id` int(20) unsigned NOT NULL AUTO_INCREMENT,
    4444              `post_id` int(20) NOT NULL,
     
    5656            ); ";
    5757            dbDelta( $sql );
    58             $sql = "CREATE TABLE IF NOT EXISTS $accTable( 
     58            $sql = "CREATE TABLE IF NOT EXISTS $accTable(
    5959              `id` int(20) unsigned NOT NULL AUTO_INCREMENT,
    6060              `exx_account` varchar(128) NOT NULL,
     
    7575            dbDelta( $sql );
    7676        } else {
    77             if($installed_version !== $latest_version) {
    78                 /*
    79                 // TODO
    80                 $installed_version_main = (int)strstr( $installed_version, '.', true);
    81                 $installed_version_major = (int)strstr( substr( $installed_version, ( strlen( $installed_version_main ) + 1 ) ), '.', true);
    82                 $installed_version_minor = (int)strstr( substr( $installed_version, ( strlen( $installed_version_main ) + 1 ) + ( strlen( $installed_version_major ) + 1 ) ), '.', true);
    83 
    84                 // Upgrade installed tables
    85                 if( $installed_version_main == 2 && $installed_version_major == 0 && $installed_version_minor == 0 ) {
    86                     // 2.0.0 => 3.0.0
    87                     $sql = "ALTER TABLE $accTable ADD COLUMN `expiry_date` INT(20) NOT NULL AFTER `channel_account`;";
    88                     $sql .= "ALTER TABLE $smTable ADD COLUMN `exx_account` VARCHAR(128) NOT NULL AFTER `post_id`;";
    89 
    90                 } elseif( $installed_version_main == 2 && $installed_version_major == 0 && $installed_version_minor == 1 ) {
    91                     // 2.0.1 => 3.0.0
    92                     $sql = "ALTER TABLE $smTable ADD COLUMN `publish_localtime` INT(20) NULL AFTER `publish_type`;";
    93                     $sql .= "ALTER TABLE $smTable ADD COLUMN `exx_account` VARCHAR(128) NOT NULL AFTER `post_id`;";
    94                     $sql .= "ALTER TABLE $accTable ADD COLUMN `expiry_date` INT(20) NOT NULL AFTER `channel_account`;";
    95 
    96                 } elseif( $installed_version_main == 1 ) {
    97                     // 1.x.x => 3.0.0
    98                     $sql = "ALTER TABLE $smTable ADD COLUMN `publish_localtime` INT(20) NULL AFTER `publish_type`;";
    99                     $sql .= "ALTER TABLE $smTable ADD COLUMN `exx_account` VARCHAR(128) NOT NULL AFTER `post_id`;";
    100                     $sql .= "ALTER TABLE $accTable ADD COLUMN `expiry_date` INT(20) NOT NULL AFTER `channel_account`;";
    101 
    102                 }
    103                 */
     77            if((string)$installed_version !== (string)$latest_version) {
    10478
    10579                // Update version
  • exxica-social-marketing/tags/1.2.2/includes/class-exxica-social-marketing.php

    r1408734 r1409410  
    6161
    6262        $this->plugin_name = 'exxica-social-marketing';
    63         $this->version = '1.2.1';
     63        $this->version = '1.2.2';
    6464
    6565        $this->load_dependencies();
  • exxica-social-marketing/trunk/README.txt

    r1408734 r1409410  
    8888
    8989== Changelog ==
     90= 1.2.2 =
     91- Minor changes to the activator/deactivator.
    9092
    9193= 1.2.1 =
     
    169171
    170172== Upgrade Notice ==
     173= 1.2.2 =
     174Minor patch. Update recommended.
     175
    171176= 1.2.1 =
    172177Updated for WP 4.5.1.
  • exxica-social-marketing/trunk/exxica-social-marketing.php

    r1408734 r1409410  
    1616 * Plugin Name:       Exxica Social Marketing
    1717 * Description:       A tool that helps you publish your WordPress posts and pages to your selected social platforms. It has been made to help planning and scheduling publications on different social platforms which again increases traffic on your website.
    18  * Version:           1.2.1
     18 * Version:           1.2.2
    1919 * Author:            Gaute Rønningen
    2020 * Author URI:        http://exxica.com/
  • exxica-social-marketing/trunk/includes/class-exxica-social-marketing-activator.php

    r1408734 r1409410  
    3030        $sql = '';
    3131
    32         $latest_version = '1.2.1';
     32        $latest_version = '1.2.2';
    3333        $installed_version = get_option('exxica_social_marketing_version', false);
    3434
     
    3737        $statTable = $wpdb->prefix . 'exxica_social_marketing_statuses';
    3838
    39         if(!$installed_version) {
     39        if($installed_version === false) {
    4040            require_once ABSPATH.'wp-admin/includes/upgrade.php';
    4141            // ESM first time setup
    42             $sql = "CREATE TABLE IF NOT EXISTS $smTable( 
     42            $sql = "CREATE TABLE IF NOT EXISTS $smTable(
    4343              `id` int(20) unsigned NOT NULL AUTO_INCREMENT,
    4444              `post_id` int(20) NOT NULL,
     
    5656            ); ";
    5757            dbDelta( $sql );
    58             $sql = "CREATE TABLE IF NOT EXISTS $accTable( 
     58            $sql = "CREATE TABLE IF NOT EXISTS $accTable(
    5959              `id` int(20) unsigned NOT NULL AUTO_INCREMENT,
    6060              `exx_account` varchar(128) NOT NULL,
     
    7575            dbDelta( $sql );
    7676        } else {
    77             if($installed_version !== $latest_version) {
    78                 /*
    79                 // TODO
    80                 $installed_version_main = (int)strstr( $installed_version, '.', true);
    81                 $installed_version_major = (int)strstr( substr( $installed_version, ( strlen( $installed_version_main ) + 1 ) ), '.', true);
    82                 $installed_version_minor = (int)strstr( substr( $installed_version, ( strlen( $installed_version_main ) + 1 ) + ( strlen( $installed_version_major ) + 1 ) ), '.', true);
    83 
    84                 // Upgrade installed tables
    85                 if( $installed_version_main == 2 && $installed_version_major == 0 && $installed_version_minor == 0 ) {
    86                     // 2.0.0 => 3.0.0
    87                     $sql = "ALTER TABLE $accTable ADD COLUMN `expiry_date` INT(20) NOT NULL AFTER `channel_account`;";
    88                     $sql .= "ALTER TABLE $smTable ADD COLUMN `exx_account` VARCHAR(128) NOT NULL AFTER `post_id`;";
    89 
    90                 } elseif( $installed_version_main == 2 && $installed_version_major == 0 && $installed_version_minor == 1 ) {
    91                     // 2.0.1 => 3.0.0
    92                     $sql = "ALTER TABLE $smTable ADD COLUMN `publish_localtime` INT(20) NULL AFTER `publish_type`;";
    93                     $sql .= "ALTER TABLE $smTable ADD COLUMN `exx_account` VARCHAR(128) NOT NULL AFTER `post_id`;";
    94                     $sql .= "ALTER TABLE $accTable ADD COLUMN `expiry_date` INT(20) NOT NULL AFTER `channel_account`;";
    95 
    96                 } elseif( $installed_version_main == 1 ) {
    97                     // 1.x.x => 3.0.0
    98                     $sql = "ALTER TABLE $smTable ADD COLUMN `publish_localtime` INT(20) NULL AFTER `publish_type`;";
    99                     $sql .= "ALTER TABLE $smTable ADD COLUMN `exx_account` VARCHAR(128) NOT NULL AFTER `post_id`;";
    100                     $sql .= "ALTER TABLE $accTable ADD COLUMN `expiry_date` INT(20) NOT NULL AFTER `channel_account`;";
    101 
    102                 }
    103                 */
     77            if((string)$installed_version !== (string)$latest_version) {
    10478
    10579                // Update version
  • exxica-social-marketing/trunk/includes/class-exxica-social-marketing.php

    r1408734 r1409410  
    6161
    6262        $this->plugin_name = 'exxica-social-marketing';
    63         $this->version = '1.2.1';
     63        $this->version = '1.2.2';
    6464
    6565        $this->load_dependencies();
Note: See TracChangeset for help on using the changeset viewer.