🔞 ADULT: Changeset/ - Full Gallery 2025

Changeset 1457902


Ignore:
Timestamp:
07/21/2016 01:06:41 AM (9 years ago)
Author:
davejesch
Message:

Fix for authentication issues that sometimes occur after initial credentials are entered.

Location:
wpsitesynccontent/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wpsitesynccontent/trunk/classes/sourcesmodel.php

    r1451657 r1457902  
    110110            } else {
    111111//SyncDebug::log(__METHOD__.'() - existing');
    112                 // update existing source
    113 // don't need to update token with itself
    114 //              $wpdb->update($this->_sources_table, array('token' => $row->token, array('id' => $row->id)));
    115 //              $wpdb->update($this->_sources_table, array('token' => $data['token']), array('id' => $row->id));
    116                 $token = $row->token; // $data['token;'];
     112                // update existing source token
     113                if ($row->token !== $data['token'])
     114                    $wpdb->update($this->_sources_table, array('token' => $data['token']), array('id' => $row->id));
     115                $token = $data['token;']; // $row->token
    117116            }
    118117        } else {
     
    129128                // update existing source
    130129//SyncDebug::log(__METHOD__.'() updating id ' . $row->id . ' with token '); //  . $data['token']);
    131 // don't need to update the token with itself
    132 //              $wpdb->update($this->_sources_table, array('token' => $data['token']), array('id' => $row->id));
    133                 $token = $row->token; // $data['token'];
     130                if ($row->token !== $data['token'])
     131                    $wpdb->update($this->_sources_table, array('token' => $data['token']), array('id' => $row->id));
     132                $token = $data['token']; // $row->token
    134133            }
    135134        }
  • wpsitesynccontent/trunk/readme.txt

    r1451657 r1457902  
    107107
    108108== Changelog ==
     109= 1.1.1 - Jul 20, 2016 =
     110* Fix for authentication issues that sometimes occur after initial credentials are entered.
     111
    109112= 1.1 - Jul 8, 2016 =
    110113* Add features to Settings page and extensibility of APIs in preparation for add-on functionality.
  • wpsitesynccontent/trunk/wpsitesynccontent.php

    r1451657 r1457902  
    66Author: WPSiteSync
    77Author URI: http://wpsitesync.com
    8 Version: 1.1
     8Version: 1.1.1
    99Text Domain: wpsitesynccontent
    1010Domain path: /language
     
    2525    class WPSiteSyncContent
    2626    {
    27         const PLUGIN_VERSION = '1.1';
     27        const PLUGIN_VERSION = '1.1.1';
    2828        const PLUGIN_NAME = 'WPSiteSyncContent';
    2929
Note: See TracChangeset for help on using the changeset viewer.