Plugin Directory

Changeset 1974938


Ignore:
Timestamp:
11/15/2018 02:01:54 PM (7 years ago)
Author:
ghostmonitor
Message:

AUTOMATED COMMIT, PLUGIN VERSION: 1.12.3

Location:
ghostmonitor
Files:
80 added
9 edited

Legend:

Unmodified
Added
Removed
  • ghostmonitor/trunk/config.json

    r1973142 r1974938  
    44    "settingsUrl": "https://api.recart.com/tracking/v2/settings/",
    55    "cdnUrl": "https://cdn.ghostmonitor.com",
    6     "version": "v1.12.1",
     6    "version": "v1.12.3",
    77    "logentriesToken": "d3695c56-67af-4c86-8c7d-26c6c252987b",
    88    "env": "production"
  • ghostmonitor/trunk/includes/class-wc-ghostmonitor.php

    r1973142 r1974938  
    730730            $redirect_url = '/';
    731731        }
    732         $this->redirect_client_to_url($redirect_url);
     732       
     733        $is_https = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on';
     734        $full_url = ($is_https ? "https" : "http") . "://" . $_SERVER['HTTP_HOST'] . $redirect_url;
     735        $this->redirect_client_to_url($full_url);
    733736    }
    734737           
  • ghostmonitor/trunk/includes/ghostmonitor_helper/vendor/autoload.php

    r1973450 r1974938  
    33// autoload.php @generated by Composer
    44
    5 require_once __DIR__ . '/composer' . '/autoload_real.php';
     5require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInita7e7318f37e302442c200a92657eb4b8::getLoader();
     7return ComposerAutoloaderInit2dbb2a7bb7ba1ac5e0a2b3836cfe5fc3::getLoader();
  • ghostmonitor/trunk/includes/ghostmonitor_helper/vendor/composer/ClassLoader.php

    r1344741 r1974938  
    5454    private $useIncludePath = false;
    5555    private $classMap = array();
    56 
    5756    private $classMapAuthoritative = false;
     57    private $missingClasses = array();
     58    private $apcuPrefix;
    5859
    5960    public function getPrefixes()
     
    273274
    274275    /**
     276     * APCu prefix to use to cache found/not-found classes, if the extension is enabled.
     277     *
     278     * @param string|null $apcuPrefix
     279     */
     280    public function setApcuPrefix($apcuPrefix)
     281    {
     282        $this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null;
     283    }
     284
     285    /**
     286     * The APCu prefix in use, or null if APCu caching is not enabled.
     287     *
     288     * @return string|null
     289     */
     290    public function getApcuPrefix()
     291    {
     292        return $this->apcuPrefix;
     293    }
     294
     295    /**
    275296     * Registers this instance as an autoloader.
    276297     *
     
    314335    public function findFile($class)
    315336    {
    316         // work around for PHP 5.3.0 - 5.3.2 https://bugs.php.net/50731
    317         if ('\\' == $class[0]) {
    318             $class = substr($class, 1);
    319         }
    320 
    321337        // class map lookup
    322338        if (isset($this->classMap[$class])) {
    323339            return $this->classMap[$class];
    324340        }
    325         if ($this->classMapAuthoritative) {
     341        if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
    326342            return false;
    327343        }
     344        if (null !== $this->apcuPrefix) {
     345            $file = apcu_fetch($this->apcuPrefix.$class, $hit);
     346            if ($hit) {
     347                return $file;
     348            }
     349        }
    328350
    329351        $file = $this->findFileWithExtension($class, '.php');
    330352
    331353        // Search for Hack files if we are running on HHVM
    332         if ($file === null && defined('HHVM_VERSION')) {
     354        if (false === $file && defined('HHVM_VERSION')) {
    333355            $file = $this->findFileWithExtension($class, '.hh');
    334356        }
    335357
    336         if ($file === null) {
     358        if (null !== $this->apcuPrefix) {
     359            apcu_add($this->apcuPrefix.$class, $file);
     360        }
     361
     362        if (false === $file) {
    337363            // Remember that this class does not exist.
    338             return $this->classMap[$class] = false;
     364            $this->missingClasses[$class] = true;
    339365        }
    340366
     
    349375        $first = $class[0];
    350376        if (isset($this->prefixLengthsPsr4[$first])) {
    351             foreach ($this->prefixLengthsPsr4[$first] as $prefix => $length) {
    352                 if (0 === strpos($class, $prefix)) {
    353                     foreach ($this->prefixDirsPsr4[$prefix] as $dir) {
    354                         if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) {
     377            $subPath = $class;
     378            while (false !== $lastPos = strrpos($subPath, '\\')) {
     379                $subPath = substr($subPath, 0, $lastPos);
     380                $search = $subPath . '\\';
     381                if (isset($this->prefixDirsPsr4[$search])) {
     382                    $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
     383                    foreach ($this->prefixDirsPsr4[$search] as $dir) {
     384                        if (file_exists($file = $dir . $pathEnd)) {
    355385                            return $file;
    356386                        }
     
    400430            return $file;
    401431        }
     432
     433        return false;
    402434    }
    403435}
  • ghostmonitor/trunk/includes/ghostmonitor_helper/vendor/composer/LICENSE

    r1371599 r1974938  
    11
    2 Copyright (c) 2016 Nils Adermann, Jordi Boggiano
     2Copyright (c) Nils Adermann, Jordi Boggiano
    33
    44Permission is hereby granted, free of charge, to any person obtaining a copy
  • ghostmonitor/trunk/includes/ghostmonitor_helper/vendor/composer/autoload_real.php

    r1973450 r1974938  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInita7e7318f37e302442c200a92657eb4b8
     5class ComposerAutoloaderInit2dbb2a7bb7ba1ac5e0a2b3836cfe5fc3
    66{
    77    private static $loader;
     
    2020        }
    2121
    22         spl_autoload_register(array('ComposerAutoloaderInita7e7318f37e302442c200a92657eb4b8', 'loadClassLoader'), true, true);
     22        spl_autoload_register(array('ComposerAutoloaderInit2dbb2a7bb7ba1ac5e0a2b3836cfe5fc3', 'loadClassLoader'), true, true);
    2323        self::$loader = $loader = new \Composer\Autoload\ClassLoader();
    24         spl_autoload_unregister(array('ComposerAutoloaderInita7e7318f37e302442c200a92657eb4b8', 'loadClassLoader'));
     24        spl_autoload_unregister(array('ComposerAutoloaderInit2dbb2a7bb7ba1ac5e0a2b3836cfe5fc3', 'loadClassLoader'));
    2525
    26         $map = require __DIR__ . '/autoload_namespaces.php';
    27         foreach ($map as $namespace => $path) {
    28             $loader->set($namespace, $path);
    29         }
     26        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     27        if ($useStaticLoader) {
     28            require_once __DIR__ . '/autoload_static.php';
    3029
    31         $map = require __DIR__ . '/autoload_psr4.php';
    32         foreach ($map as $namespace => $path) {
    33             $loader->setPsr4($namespace, $path);
    34         }
     30            call_user_func(\Composer\Autoload\ComposerStaticInit2dbb2a7bb7ba1ac5e0a2b3836cfe5fc3::getInitializer($loader));
     31        } else {
     32            $map = require __DIR__ . '/autoload_namespaces.php';
     33            foreach ($map as $namespace => $path) {
     34                $loader->set($namespace, $path);
     35            }
    3536
    36         $classMap = require __DIR__ . '/autoload_classmap.php';
    37         if ($classMap) {
    38             $loader->addClassMap($classMap);
     37            $map = require __DIR__ . '/autoload_psr4.php';
     38            foreach ($map as $namespace => $path) {
     39                $loader->setPsr4($namespace, $path);
     40            }
     41
     42            $classMap = require __DIR__ . '/autoload_classmap.php';
     43            if ($classMap) {
     44                $loader->addClassMap($classMap);
     45            }
    3946        }
    4047
    4148        $loader->register(true);
    4249
    43         $includeFiles = require __DIR__ . '/autoload_files.php';
     50        if ($useStaticLoader) {
     51            $includeFiles = Composer\Autoload\ComposerStaticInit2dbb2a7bb7ba1ac5e0a2b3836cfe5fc3::$files;
     52        } else {
     53            $includeFiles = require __DIR__ . '/autoload_files.php';
     54        }
    4455        foreach ($includeFiles as $fileIdentifier => $file) {
    45             composerRequirea7e7318f37e302442c200a92657eb4b8($fileIdentifier, $file);
     56            composerRequire2dbb2a7bb7ba1ac5e0a2b3836cfe5fc3($fileIdentifier, $file);
    4657        }
    4758
     
    5061}
    5162
    52 function composerRequirea7e7318f37e302442c200a92657eb4b8($fileIdentifier, $file)
     63function composerRequire2dbb2a7bb7ba1ac5e0a2b3836cfe5fc3($fileIdentifier, $file)
    5364{
    5465    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • ghostmonitor/trunk/includes/ghostmonitor_helper/vendor/composer/installed.json

    r1411703 r1974938  
    1616            "phpunit/phpunit": "@stable"
    1717        },
    18         "time": "2015-09-21 10:12:28",
     18        "time": "2015-09-21T10:12:28+00:00",
    1919        "type": "library",
    2020        "installation-source": "source",
     
    4444    },
    4545    {
     46        "name": "ghostmonitor/helper",
     47        "version": "v0.9.2",
     48        "version_normalized": "0.9.2.0",
     49        "source": {
     50            "type": "git",
     51            "url": "https://bitbucket.org/ghostmonitor/gm-plugin-helper.git",
     52            "reference": "98e615c8e545437de67635fdd98eb0e1c2ce993e"
     53        },
     54        "time": "2016-05-06T12:56:32+00:00",
     55        "type": "library",
     56        "installation-source": "source",
     57        "autoload": {
     58            "psr-4": {
     59                "Ghostmonitor\\": "ghostmonitor"
     60            }
     61        },
     62        "authors": [
     63            {
     64                "name": "Andras Hegedus",
     65                "email": "andras.hegedus@ghosmonitor.com"
     66            }
     67        ],
     68        "description": "Ghostmonitor helper class for webshop modules"
     69    },
     70    {
    4671        "name": "ghostmonitor/logentries",
    4772        "version": "dev-master",
     
    5277            "reference": "577ed58952cab0d575a0e322a3119f0b6552f5f3"
    5378        },
    54         "time": "2016-02-29 17:37:55",
     79        "time": "2016-02-29T17:37:55+00:00",
    5580        "type": "library",
    5681        "installation-source": "source",
     
    6792        ],
    6893        "description": "Ghostmonitor Logentries Fork"
    69     },
    70     {
    71         "name": "ghostmonitor/helper",
    72         "version": "v0.9.2",
    73         "version_normalized": "0.9.2.0",
    74         "source": {
    75             "type": "git",
    76             "url": "https://bitbucket.org/ghostmonitor/gm-plugin-helper.git",
    77             "reference": "98e615c8e545437de67635fdd98eb0e1c2ce993e"
    78         },
    79         "time": "2016-05-06 12:56:32",
    80         "type": "library",
    81         "installation-source": "source",
    82         "autoload": {
    83             "psr-4": {
    84                 "Ghostmonitor\\": "ghostmonitor"
    85             }
    86         },
    87         "authors": [
    88             {
    89                 "name": "Andras Hegedus",
    90                 "email": "andras.hegedus@ghosmonitor.com"
    91             }
    92         ],
    93         "description": "Ghostmonitor helper class for webshop modules"
    9494    }
    9595]
  • ghostmonitor/trunk/readme.txt

    r1973142 r1974938  
    44Requires at least: 3.9
    55Tested up to: 4.9.8
    6 Stable tag: 1.12.1
     6Stable tag: 1.12.3
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • ghostmonitor/trunk/woocommerce-ghostmonitor.php

    r1973142 r1974938  
    66 * Author: Ghostmonitor INC
    77 * Author URI: http://www.recart.com
    8  * Version: v1.12.1
     8 * Version: v1.12.3
    99 */
    1010
     
    4444        global $wp_version;
    4545
    46         $version = 'v1.12.1';
     46        $version = 'v1.12.3';
    4747
    4848        $discount_enabled = get_option('woocommerce_enable_coupons') === 'yes' ? 'true' : 'false';
Note: See TracChangeset for help on using the changeset viewer.