Plugin Directory

Changeset 2282007


Ignore:
Timestamp:
04/12/2020 06:01:51 PM (6 years ago)
Author:
hitcode
Message:

3.7.2

Location:
locatoraid/trunk
Files:
1 added
7 edited

Legend:

Unmodified
Added
Removed
  • locatoraid/trunk/config/_common.php

    r2241294 r2282007  
    11<?php if (! defined('ABSPATH')) exit; // Exit if accessed directly
    2 $config['app_version'] = '3.7.1';
     2$config['app_version'] = '3.7.2';
    33// $config['dbprefix_version'] = 'v1';
    44
  • locatoraid/trunk/happ2/hsystem/parts/profiler.php

    r2191985 r2282007  
    7373            if ( ! isset($config[$section]))
    7474            {
    75                 $this->_compile_{$section} = TRUE;
     75                $this->{'_compile_' . $section} = TRUE;
    7676            }
    7777        }
     
    9191            if (in_array($method, $this->_available_sections))
    9292            {
    93                 $this->_compile_{$method} = ($enable !== FALSE) ? TRUE : FALSE;
     93                $this->{'_compile_' . $method} = ($enable !== FALSE) ? TRUE : FALSE;
    9494            }
    9595        }
     
    427427        foreach ($this->_available_sections as $section)
    428428        {
    429             if ($this->_compile_{$section} !== FALSE)
     429            if ($this->{'_compile_' . $section} !== FALSE)
    430430            {
    431431                $func = "_compile_{$section}";
  • locatoraid/trunk/happ2/lib-wp/hcWpBase6.php

    r2209033 r2282007  
    203203
    204204//      session_name( $session_name );
    205         @session_start();
    206         // session_start();
     205        $sessionOptions = array();
     206        $sessionOptions = array( 'read_and_close' => TRUE );
     207        @session_start( $sessionOptions );
     208
    207209        // ob_start();
    208210    }
  • locatoraid/trunk/happ2/modules/maps_google/assets/js/gmaps.js

    r2191985 r2282007  
    5858
    5959function hc2_geocode( address, callback ){
     60    if( 'undefined' == typeof hc2_geocode.cache ){
     61        hc2_geocode.cache = {};
     62    }
     63
     64    if( typeof address == 'string' ){
     65        address = { 'address': address };
     66    }
     67
    6068    var more_pass_args = [];
    6169    if( arguments.length > 2 ){
     
    6371            more_pass_args.push( arguments[ii] );
    6472        }
     73    }
     74
     75    if( hc2_geocode.cache.hasOwnProperty(address.address) ){
     76        var results = {
     77            lat: hc2_geocode.cache[address.address][0],
     78            lng: hc2_geocode.cache[address.address][1],
     79            };
     80
     81        var pass_args = [ true, results, google.maps.GeocoderStatus.OK ];
     82        pass_args = pass_args.concat( more_pass_args );
     83        callback.apply( this, pass_args );
     84// console.log( 'GEOCODER CACHE: ' + address.address + ': ' + hc2_geocode.cache[address.address][0] + ', ' + hc2_geocode.cache[address.address][1] );
     85        return true;
    6586    }
    6687
     
    7899    var geocoder = new google.maps.Geocoder();
    79100
    80     if( typeof address == 'string' ){
    81         address = { 'address': address };
    82     }
    83101
    84102    geocoder.geocode(
     
    106124                        lng: this_loc.lng(),
    107125                        };
     126
     127                    hc2_geocode.cache[ address.address ] = [ results.lat, results.lng ];
    108128                    break;
    109129
  • locatoraid/trunk/happ2/modules/session/lib.php

    r2209033 r2282007  
    7979        $this->init_done = TRUE;
    8080
     81
    8182        $app_short_name = $this->app->app_short_name();
    8283        $this->my_prefix = $app_short_name . '_' . $this->my_prefix;
     
    8586
    8687        if( session_id() == '' ){
    87             @session_start();
     88            $sessionOptions = array();
     89            $sessionOptions = array( 'read_and_close' => TRUE );
     90            @session_start( $sessionOptions );
    8891        }
    8992
     
    373376    function set_userdata($newdata = array(), $newval = '', $append = FALSE)
    374377    {
     378        @session_start();
    375379        if (is_string($newdata))
    376380        {
     
    429433    function unset_userdata($newdata = array())
    430434    {
     435        @session_start();
    431436        if (is_string($newdata)){
    432437            $newdata = array($newdata => '');
  • locatoraid/trunk/locatoraid.php

    r2241294 r2282007  
    44Plugin URI: https://www.locatoraid.com/
    55Description: Store locator plugin
    6 Version: 3.7.1
     6Version: 3.7.2
    77Author: hitcode.com
    88Author URI: https://www.locatoraid.com/
     
    1212
    1313if( ! defined('LC3_VERSION') ){
    14     define( 'LC3_VERSION', 371 );
     14    define( 'LC3_VERSION', 372 );
    1515}
    1616
  • locatoraid/trunk/readme.txt

    r2241294 r2282007  
    55Stable tag: trunk
    66Requires at least: 3.3
    7 Tested up to: 5.3
     7Tested up to: 5.4
    88Requires PHP: 5.3
    99
     
    8484
    8585== Changelog ==
     86
     87= 3.7.2 =
     88* BUG: PHP notice with PHP 7.4 in profiler.php file.
     89* BUG: "REST API" error in Wordpress SiteHealth.
    8690
    8791= 3.7.1 =
Note: See TracChangeset for help on using the changeset viewer.