Plugin Directory

Changeset 2768657


Ignore:
Timestamp:
08/10/2022 04:22:10 AM (4 years ago)
Author:
nigelmoore1
Message:

1.2.0

Location:
the-tech-tribe/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • the-tech-tribe/trunk/README.txt

    r2723111 r2768657  
    44Tags: techtribe, content, syndication
    55Requires at least: 5.0
    6 Tested up to: 5.9.2
    7 Stable tag: 1.1.1
     6Tested up to: 6.0.1
     7Stable tag: 1.2.0
    88Requires PHP: 7.0
    99License: GPLv2 or later
     
    5959
    6060== Changelog ==
     61
     62= 1.2.0 - August 08, 2022 =
     63* Improve logs for further troubleshoot.
     64* Test on WordPress version 6.0.1
    6165
    6266= 1.1.1 - May 13, 2022 =
  • the-tech-tribe/trunk/app/Authenticate.php

    r2627939 r2768657  
    7070        tttCustomLogs("api return code : " . $resCode);
    7171
     72        $ip_server = isset($_SERVER['SERVER_ADDR']) ? $_SERVER['SERVER_ADDR'] : 'No Server IP Address';
     73        tttCustomLogs("Server IP Address : " . $ip_server);
     74
     75        $getUserIP = tttGetTheUserIp();
     76        tttCustomLogs("User IP Address : " . $getUserIP);
     77
    7278        $resBody = wp_remote_retrieve_body($response);
    7379        tttCustomLogs("api return body : ");
  • the-tech-tribe/trunk/app/Post.php

    r2627939 r2768657  
    5353        $ret = '';
    5454        $apiKey = WPOptions::get_instance()->apiKey();
     55       
     56        tttCustomLogs("api key ");
     57        tttCustomLogs($apiKey);
     58
    5559        if($apiKey != '') {
    56            
     60            tttCustomLogs("api key not empty");
     61
    5762            //move this to function
    5863            $userAccountKeys = \TheTribalPlugin\User::get_instance()->getAccountKeys();
     64            tttCustomLogs("userAccountKeys");
     65            tttCustomLogs($userAccountKeys);
     66
    5967            $userAccountKeys['date_import_blog'] = \TheTribalPlugin\WPOptions::get_instance()->dateImportBlog();
    6068           
     
    7280            ]);
    7381           
     82            tttCustomLogs("wp_remote_post response");
     83            tttCustomLogs($response);
    7484           
    7585            $resCode = wp_remote_retrieve_response_code($response);
     86            tttCustomLogs("resCode");
     87            tttCustomLogs($resCode);
    7688
    7789            $resBody = wp_remote_retrieve_body($response);
     90            tttCustomLogs("resBody");
     91            tttCustomLogs($resBody);
     92
    7893            $toArrayBody = json_decode($resBody, 1);
    7994           
    8095            if ( is_wp_error( $response ) ) {
     96                tttCustomLogs("has wp error");
     97                tttCustomLogs($response);
     98
    8199                $error_message = $response->get_error_message();
    82100                $ret = $error_message;
     
    85103            }
    86104        }
    87        
     105
     106        tttCustomLogs("return");
     107        tttCustomLogs($ret);
    88108        return rest_ensure_response($ret);
    89109    }
  • the-tech-tribe/trunk/helpers/utilities.php

    r2701685 r2768657  
    239239
    240240}
     241
     242function tttGetTheUserIp()
     243{
     244    if ( ! empty( $_SERVER['HTTP_CLIENT_IP'] ) ) {
     245        //check ip from share internet
     246        $ip = $_SERVER['HTTP_CLIENT_IP'];
     247    } elseif ( ! empty( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) {
     248        //to check ip is pass from proxy
     249        $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
     250    } else {
     251        $ip = $_SERVER['REMOTE_ADDR'];
     252    }
     253    return apply_filters( 'ttt_wp_get_ip', $ip );
     254}
  • the-tech-tribe/trunk/the-tribal-plugin.php

    r2723111 r2768657  
    1717 * Plugin URI:        thetechtribe.com
    1818 * Description:       This plugin is for members of The Tech Tribe to manage features such as Automated Blog Posting etc.
    19  * Version:           1.1.1
     19 * Version:           1.2.0
    2020 * Author:            The Tech Tribe
    2121 * Author URI:        https://thetechtribe.com
     
    3636 * Rename this for your plugin and update it as you release new versions.
    3737 */
    38 define( 'THE_TRIBAL_PLUGIN_VERSION', '1.1.1' );
     38define( 'THE_TRIBAL_PLUGIN_VERSION', '1.2.0' );
    3939
    4040//date_default_timezone_set(wp_timezone_string());
Note: See TracChangeset for help on using the changeset viewer.