Plugin Directory

Changeset 2282011


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

4.6.1

Location:
shiftcontroller/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • shiftcontroller/trunk/hc3/session.php

    r2275431 r2282011  
    4949     */
    5050
    51     protected function _isRest()
    52     {
    53         // if wordpress
    54         if( ! defined('WPINC') ){
    55             return FALSE;
    56         }
    57 
    58         $prefix = rest_get_url_prefix( );
    59         if (defined('REST_REQUEST') && REST_REQUEST // (#1)
    60             || isset($_GET['rest_route']) // (#2)
    61                  && strpos( trim( $_GET['rest_route'], '\\/' ), $prefix , 0 ) === 0)
    62             return true;
    63 
    64         // (#3)
    65         $rest_url = wp_parse_url( site_url( $prefix ) );
    66         $current_url = wp_parse_url( add_query_arg( array( ) ) );
    67         return strpos( $current_url['path'], $rest_url['path'], 0 ) === 0;
    68     }
    69 
    7051    public function __construct( $prefix = 'hc3' )
    7152    {
    72         if( $this->_isRest() ){
    73             return;
    74         }
    75 
    7653        // $this->request = $request;
    7754        $this->_prefix = $prefix;
     
    8158// echo "INIT SESSION FOR '$this->_prefix'<br>";
    8259        if( session_id() == '' ){
    83             @session_start();
     60            $sessionOptions = array();
     61            $sessionOptions = array( 'read_and_close' => TRUE );
     62            @session_start( $sessionOptions );
    8463        }
    8564
     
    318297    public function setUserdata( $key, $value, $append = FALSE )
    319298    {
     299        @session_start();
    320300        $newdata = array( $key => $value );
    321301
     
    365345    public function unsetUserdata( $key )
    366346    {
     347        @session_start();
    367348        $parent_newdata = array();
    368349
  • shiftcontroller/trunk/readme.txt

    r2275431 r2282011  
    6060
    6161== Changelog ==
     62
     63= 4.6.1 =
     64* BUG: "loopback request" error in Wordpress SiteHealth.
    6265
    6366= 4.6.0 =
  • shiftcontroller/trunk/shiftcontroller4.php

    r2275431 r2282011  
    44 * Plugin URI: http://www.shiftcontroller.com/
    55 * Description: Staff scheduling plugin
    6  * Version: 4.6.0
     6 * Version: 4.6.1
    77 * Author: hitcode.com
    88 * Author URI: http://www.shiftcontroller.com/
     
    1111*/
    1212
    13 define( 'SH4_VERSION', 460 );
     13define( 'SH4_VERSION', 461 );
    1414
    1515if (! defined('ABSPATH')) exit; // Exit if accessed directly
Note: See TracChangeset for help on using the changeset viewer.