Plugin Directory

Changeset 1751911


Ignore:
Timestamp:
10/24/2017 02:17:38 PM (8 years ago)
Author:
layotte
Message:

Tagging 2.0.3

Location:
ithemes-sync
Files:
2 added
14 edited
1 copied

Legend:

Unmodified
Added
Removed
  • ithemes-sync/tags/2.0.3/api.php

    r1669854 r1751911  
    6666        'manage-reports'               => 'Ithemes_Sync_Verb_Manage_Reports',
    6767        'manage-roles'                 => 'Ithemes_Sync_Verb_Manage_Roles',
     68        'manage-site'                  => 'Ithemes_Sync_Verb_Manage_Site',
    6869        'manage-themes'                => 'Ithemes_Sync_Verb_Manage_Themes',
    6970        'manage-users'                 => 'Ithemes_Sync_Verb_Manage_Users',
     
    7475   
    7576    public function __construct() {
     77        @ini_set( 'display_errors', 0 );
     78
    7679        $GLOBALS['ithemes-sync-api'] = $this;
    7780       
  • ithemes-sync/tags/2.0.3/history.txt

    r1682607 r1751911  
    1851852.0.1 - 2017-06-21 - Lew Ayotte
    186186    Bug Fix: Adding code to get-authentication-token verb to set the scheme to https by default if it should be
     1872.0.3 - 2017-09-26 - Glenn Ansley
     188    Improvement: Refactored verbs to improve add-site function from Sync Dashboard.
  • ithemes-sync/tags/2.0.3/init.php

    r1682607 r1751911  
    55Description: Manage updates to your WordPress sites easily in one place.
    66Author: iThemes
    7 Version: 2.0.1
     7Version: 2.0.3
    88Author URI: http://ithemes.com/
    99Domain Path: /lang/
  • ithemes-sync/tags/2.0.3/lang/ithemes-sync.pot

    r1682607 r1751911  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: iThemes Sync 2.0.1\n"
     5"Project-Id-Version: iThemes Sync 2.0.3\n"
    66"Report-Msgid-Bugs-To: http://ithemes.com/support/\n"
    7 "POT-Creation-Date: 2017-06-21 12:49:59+00:00\n"
     7"POT-Creation-Date: 2017-09-26 14:04:28+00:00\n"
    88"PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n"
    99"MIME-Version: 1.0\n"
     
    3636msgstr ""
    3737
    38 #. #-#-#-#-#  ithemes-sync.pot (iThemes Sync 2.0.1)  #-#-#-#-#
     38#. #-#-#-#-#  ithemes-sync.pot (iThemes Sync 2.0.3)  #-#-#-#-#
    3939#. Plugin Name of the plugin/theme
    4040#: admin.php:168 admin.php:174 settings-page.php:268
     
    546546msgstr ""
    547547
    548 #: settings.php:131
     548#: settings.php:133
    549549msgid ""
    550550"The user is not authenticated. Could not remove authentication for the user."
    551551msgstr ""
    552552
    553 #: settings.php:197
     553#: settings.php:199
    554554msgid ""
    555555"A valid user was unable to be found. A valid user is required in order to do "
  • ithemes-sync/tags/2.0.3/readme.txt

    r1711026 r1751911  
    44Requires at least: 4.5
    55Tested up to: 4.8
    6 Stable tag: 2.0.1
     6Stable tag: 2.0.3
    77License: GPLv3 or later
    88License URI: http://www.gnu.org/licenses/quick-guide-gplv3.html
     
    8787== Changelog ==
    8888
     89= 2.0.3 =
     90* Refactored verbs to improve add-site function from Sync Dashboard
     91
     92= 2.0.2 =
     93* Turning of PHP Errors when doing AJAX, like WP does
     94
    8995= 2.0.1 =
    9096* Adding code to get-authentication-token verb to set the scheme to https by default if it should be
  • ithemes-sync/tags/2.0.3/request-handler.php

    r1669854 r1751911  
    229229   
    230230    private function parse_request( $request ) {
    231         if ( empty( $this->options['authentications'] ) ) {
     231
     232        if ( empty( $this->options['authentications'] ) && ( ! empty( $request['action'] ) && 'manage-site' != $request['action'] ) ) {
    232233            $this->send_response( new WP_Error( 'site-not-authenticated', 'The site does not have any authenticated users.' ) );
    233234        }
     
    247248                $this->send_response( new WP_Error( "missing-var-$index", 'Invalid request.' ) );
    248249            }
     250        }
     251
     252        // If action is manage-site, stop here
     253        if ( 'manage-site' == $request['action'] ) {
     254            return;
    249255        }
    250256       
  • ithemes-sync/tags/2.0.3/settings.php

    r1669854 r1751911  
    9090    }
    9191   
    92     public function add_authentication( $user_id, $username, $key ) {
    93         $this->init();
    94        
     92    public function add_authentication( $sync_site_id, $ithemes_username, $key, $wp_user_login = false ) {
     93        $this->init();
    9594       
    9695        if ( ! isset( $this->options['authentications'] ) || ! is_array( $this->options['authentications'] ) ) {
     
    9897        }
    9998       
    100         $local_user = wp_get_current_user();
    101        
    102         $this->options['authentications'][$user_id] = array(
     99        if ( empty( $wp_user_login ) ) {
     100            $local_user    = wp_get_current_user();
     101            $wp_user_login = $local_user->user_login;
     102        }
     103       
     104        $this->options['authentications'][$sync_site_id] = array(
    103105            'key'        => $key,
    104106            'timestamp'  => time(),
    105             'local_user' => $local_user->user_login,
    106             'username'   => $username,
     107            'local_user' => $wp_user_login,
     108            'username'   => $ithemes_username,
    107109        );
    108110       
  • ithemes-sync/trunk/api.php

    r1669854 r1751911  
    6666        'manage-reports'               => 'Ithemes_Sync_Verb_Manage_Reports',
    6767        'manage-roles'                 => 'Ithemes_Sync_Verb_Manage_Roles',
     68        'manage-site'                  => 'Ithemes_Sync_Verb_Manage_Site',
    6869        'manage-themes'                => 'Ithemes_Sync_Verb_Manage_Themes',
    6970        'manage-users'                 => 'Ithemes_Sync_Verb_Manage_Users',
     
    7475   
    7576    public function __construct() {
     77        @ini_set( 'display_errors', 0 );
     78
    7679        $GLOBALS['ithemes-sync-api'] = $this;
    7780       
  • ithemes-sync/trunk/history.txt

    r1682607 r1751911  
    1851852.0.1 - 2017-06-21 - Lew Ayotte
    186186    Bug Fix: Adding code to get-authentication-token verb to set the scheme to https by default if it should be
     1872.0.3 - 2017-09-26 - Glenn Ansley
     188    Improvement: Refactored verbs to improve add-site function from Sync Dashboard.
  • ithemes-sync/trunk/init.php

    r1682607 r1751911  
    55Description: Manage updates to your WordPress sites easily in one place.
    66Author: iThemes
    7 Version: 2.0.1
     7Version: 2.0.3
    88Author URI: http://ithemes.com/
    99Domain Path: /lang/
  • ithemes-sync/trunk/lang/ithemes-sync.pot

    r1682607 r1751911  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: iThemes Sync 2.0.1\n"
     5"Project-Id-Version: iThemes Sync 2.0.3\n"
    66"Report-Msgid-Bugs-To: http://ithemes.com/support/\n"
    7 "POT-Creation-Date: 2017-06-21 12:49:59+00:00\n"
     7"POT-Creation-Date: 2017-09-26 14:04:28+00:00\n"
    88"PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n"
    99"MIME-Version: 1.0\n"
     
    3636msgstr ""
    3737
    38 #. #-#-#-#-#  ithemes-sync.pot (iThemes Sync 2.0.1)  #-#-#-#-#
     38#. #-#-#-#-#  ithemes-sync.pot (iThemes Sync 2.0.3)  #-#-#-#-#
    3939#. Plugin Name of the plugin/theme
    4040#: admin.php:168 admin.php:174 settings-page.php:268
     
    546546msgstr ""
    547547
    548 #: settings.php:131
     548#: settings.php:133
    549549msgid ""
    550550"The user is not authenticated. Could not remove authentication for the user."
    551551msgstr ""
    552552
    553 #: settings.php:197
     553#: settings.php:199
    554554msgid ""
    555555"A valid user was unable to be found. A valid user is required in order to do "
  • ithemes-sync/trunk/readme.txt

    r1711026 r1751911  
    44Requires at least: 4.5
    55Tested up to: 4.8
    6 Stable tag: 2.0.1
     6Stable tag: 2.0.3
    77License: GPLv3 or later
    88License URI: http://www.gnu.org/licenses/quick-guide-gplv3.html
     
    8787== Changelog ==
    8888
     89= 2.0.3 =
     90* Refactored verbs to improve add-site function from Sync Dashboard
     91
     92= 2.0.2 =
     93* Turning of PHP Errors when doing AJAX, like WP does
     94
    8995= 2.0.1 =
    9096* Adding code to get-authentication-token verb to set the scheme to https by default if it should be
  • ithemes-sync/trunk/request-handler.php

    r1669854 r1751911  
    229229   
    230230    private function parse_request( $request ) {
    231         if ( empty( $this->options['authentications'] ) ) {
     231
     232        if ( empty( $this->options['authentications'] ) && ( ! empty( $request['action'] ) && 'manage-site' != $request['action'] ) ) {
    232233            $this->send_response( new WP_Error( 'site-not-authenticated', 'The site does not have any authenticated users.' ) );
    233234        }
     
    247248                $this->send_response( new WP_Error( "missing-var-$index", 'Invalid request.' ) );
    248249            }
     250        }
     251
     252        // If action is manage-site, stop here
     253        if ( 'manage-site' == $request['action'] ) {
     254            return;
    249255        }
    250256       
  • ithemes-sync/trunk/settings.php

    r1669854 r1751911  
    9090    }
    9191   
    92     public function add_authentication( $user_id, $username, $key ) {
    93         $this->init();
    94        
     92    public function add_authentication( $sync_site_id, $ithemes_username, $key, $wp_user_login = false ) {
     93        $this->init();
    9594       
    9695        if ( ! isset( $this->options['authentications'] ) || ! is_array( $this->options['authentications'] ) ) {
     
    9897        }
    9998       
    100         $local_user = wp_get_current_user();
    101        
    102         $this->options['authentications'][$user_id] = array(
     99        if ( empty( $wp_user_login ) ) {
     100            $local_user    = wp_get_current_user();
     101            $wp_user_login = $local_user->user_login;
     102        }
     103       
     104        $this->options['authentications'][$sync_site_id] = array(
    103105            'key'        => $key,
    104106            'timestamp'  => time(),
    105             'local_user' => $local_user->user_login,
    106             'username'   => $username,
     107            'local_user' => $wp_user_login,
     108            'username'   => $ithemes_username,
    107109        );
    108110       
Note: See TracChangeset for help on using the changeset viewer.