Plugin Directory

Changeset 2162836


Ignore:
Timestamp:
09/25/2019 10:30:42 AM (7 years ago)
Author:
humcommerce
Message:

Fixed : Undefined index warnings in debug log.

Location:
humcommerce/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • humcommerce/trunk/README.txt

    r2148283 r2162836  
    55Tested up to: 5.2.2
    66Requires PHP: 5.2.4
    7 Stable tag: 2.1.10
     7Stable tag: 2.1.11
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8181== Changelog ==
    8282
     83Ver 2.1.11 (25 Sept 2019)
     84* Fix: Undefined index warnings in debug log or showing it on frontend.
     85
    8386Ver 2.1.10 (30 Aug 2019)
    8487* Fix: Javascript error in console when we visit category page.
  • humcommerce/trunk/humcommerce.php

    r2148180 r2162836  
    1616 * Plugin URI:        https://wordpress.org/plugins/humcommerce/
    1717 * Description:       HumCommerce WordPress plugin to Record, Analyze & Convert your visitors.
    18  * Version:           2.1.10
     18 * Version:           2.1.11
    1919 * Author:            HumCommerce
    2020 * Author URI:        https://www.humcommerce.com
     
    2929}
    3030
    31 define( 'HUMCOMMERCE_VERSION', '2.1.10' );
     31define( 'HUMCOMMERCE_VERSION', '2.1.11' );
    3232
    3333
  • humcommerce/trunk/libs/class-humdashtracker.php

    r2130583 r2162836  
    116116        $this->page_charset      = self::DEFAULT_CHARSET_PARAMETER_VALUES;
    117117        $this->page_url          = self::get_current_url();
    118         $this->ip                = ! empty( sanitize_key( $_SERVER['REMOTE_ADDR'] ) ) ? sanitize_key( $_SERVER['REMOTE_ADDR'] ) : false;
    119         $this->accept_language   = ! empty( sanitize_key( $_SERVER['HTTP_ACCEPT_LANGUAGE'] ) ) ? sanitize_key( $_SERVER['HTTP_ACCEPT_LANGUAGE'] ) : false;
    120         $this->user_agent        = ! empty( sanitize_key( $_SERVER['HTTP_USER_AGENT'] ) ) ? sanitize_key( $_SERVER['HTTP_USER_AGENT'] ) : false;
     118        $this->ip                = ! empty( $_SERVER['REMOTE_ADDR'] ) ? $_SERVER['REMOTE_ADDR'] : false; //phpcs:ignore
     119        $this->accept_language   = ! empty( $_SERVER['HTTP_ACCEPT_LANGUAGE'] ) ? $_SERVER['HTTP_ACCEPT_LANGUAGE'] : false; //phpcs:ignore
     120        $this->user_agent        = ! empty( $_SERVER['HTTP_USER_AGENT'] ) ? $_SERVER['HTTP_USER_AGENT'] : false; //phpcs:ignore
    121121        if ( ! empty( $apiurl ) ) {
    122122            self::$url = $apiurl;
     
    16961696     */
    16971697    protected static function get_current_host() {
    1698         if ( null !== empty( sanitize_mime_type( $_SERVER['HTTP_HOST'] ) ) ) { // phpcs:ignore
    1699             return sanitize_mime_type( $_SERVER['HTTP_HOST'] ); // phpcs:ignore
     1698        if ( ! empty( $_SERVER['HTTP_HOST'] ) ) { // phpcs:ignore
     1699            return $_SERVER['HTTP_HOST']; // phpcs:ignore
    17001700        }
    17011701        return 'unknown';
Note: See TracChangeset for help on using the changeset viewer.