Plugin Directory

Changeset 1725925


Ignore:
Timestamp:
09/07/2017 06:19:37 AM (9 years ago)
Author:
itamarg
Message:
  • Removed any additional spaces when saving the token.
Location:
sr-partner/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • sr-partner/trunk/admin/class-sr-partner-admin.php

    r1717421 r1725925  
    830830    {
    831831        if (isset($_POST['sr-partner-form-activate-token']) && !empty($_POST['sr-partner-form-activate-token'])) {
    832             $token = $_POST['sr-partner-form-activate-token'];
     832            $token = trim($_POST['sr-partner-form-activate-token']);
    833833            $temp  = explode('/', $token);
    834834
  • sr-partner/trunk/includes/class-sr-partner-helper.php

    r1717421 r1725925  
    8888    public function read_key()
    8989    {
    90         if ( file_exists(plugin_dir_path( dirname( __FILE__ ) ).'sr-partner.json') ) {
    91             $file = json_decode(file_get_contents(plugin_dir_path( dirname( __FILE__ ) ).'sr-partner.json'), TRUE);
    92             if ( isset($file['token']) ) {           
    93                 $option = update_option(SR_PARTNER_GEN_KEY, $file['token']);               
     90        if (file_exists(plugin_dir_path( dirname( __FILE__ )).'sr-partner.json')) {
     91            $file = json_decode(file_get_contents(plugin_dir_path(dirname( __FILE__ )).'sr-partner.json'), true);
     92            if (isset($file['token'])) {
     93                $option = update_option(SR_PARTNER_GEN_KEY, trim($file['token']));
    9494            }
    9595        }
  • sr-partner/trunk/readme.txt

    r1717421 r1725925  
    44Requires at least: 4.6
    55Tested up to: 4.8.1
    6 Stable tag: 1.1.3
     6Stable tag: 1.1.4
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4949== Changelog ==
    5050
     51= 1.1.4 =
     52
     53* Release date: September 07, 2017
     54
     55**Bug fixes**
     56* Removed any additional spaces when saving the token.
     57
    5158= 1.1.3 =
    5259
  • sr-partner/trunk/sr-partner.php

    r1717421 r1725925  
    1717 * Plugin URI:        https://www.seoreseller.com/
    1818 * Description:       SEOReseller's suite of tools for building, managing, and growing your digital marketing agency.
    19  * Version:           1.1.3
     19 * Version:           1.1.4
    2020 * Author:            SEOReseller Team
    2121 * Author URI:        https://www.seoreseller.com/
     
    4343const SR_PARTNER_PLUGIN_NAME                = 'sr-partner';
    4444
    45 const SR_PARTNER_VERSION                    = '1.1.3';
     45const SR_PARTNER_VERSION                    = '1.1.4';
    4646const SR_PARTNER_DEBUG                      = false;
    4747
Note: See TracChangeset for help on using the changeset viewer.