Plugin Directory

Changeset 3208714


Ignore:
Timestamp:
12/16/2024 05:03:42 PM (16 months ago)
Author:
printapp
Message:

2.1.1

Initialized the cookie before any header is set on the app

Location:
printapp
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • printapp/tags/2.1.1/README.md

    r3205331 r3208714  
    11# Print.App
    22
    3 ## Version 2.1.0 plugin
     3## Version 2.1.1 plugin
    44PrintApp is a platform that allows your customers to personalize their Print orders on any web store.
    55It provides customers, an easy to use WYSIWYG (What you see is what you get) "Do It Yourself" interface for creating artworks for Print.
  • printapp/tags/2.1.1/functions/general/customization.php

    r3205331 r3208714  
    22
    33    namespace printapp\functions\general;
     4
     5    function set_cookie() {
     6        if (!isset($_COOKIE[PRINT_APP_CUSTOMIZATION_KEY])) {
     7            $token = bin2hex(random_bytes(16));
     8            setcookie(PRINT_APP_CUSTOMIZATION_KEY, $token, time() + PRINT_APP_CUSTOMIZATION_DURATION, '/');
     9        }
     10    }
    411
    512    function get_user_token() {
  • printapp/tags/2.1.1/functions/general/init_hooks.php

    r3195438 r3208714  
    4545           
    4646        }
     47
     48        add_action('init', 'printapp\\functions\\general\\set_cookie');
    4749       
    4850        // save project for both authenticated and guest users
  • printapp/tags/2.1.1/printapp.php

    r3205331 r3208714  
    44 *  Plugin URI:         https://print.app
    55 *  Description:        Empower your customers to personalize products like Business Cards, Photo Prints, T-Shirts, Mugs, Banners, Canvases, etc. on your store before purchase
    6  *  Version:            2.1.0
     6 *  Version:            2.1.1
    77 *  Requires at least:  3.8
    88 *  Requires PHP:       5.2.4
     
    4646             *  @var string
    4747            */
    48             public $version = '2.1.0';
     48            public $version = '2.1.1';
    4949
    5050            /**
  • printapp/tags/2.1.1/readme.txt

    r3205331 r3208714  
    44Requires at least: 3.8
    55Tested up to: 6.6
    6 Stable tag: 2.1.0
     6Stable tag: 2.1.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    102102== Changelog ==
    103103
     104= 2.1.1 =
     105Initialized the cookie before any header is set on the app
     106
    104107= 2.1.0 =
    105108Switched from using Sessions to using Wordpress Transients for saving customization details.
  • printapp/trunk/README.md

    r3205331 r3208714  
    11# Print.App
    22
    3 ## Version 2.1.0 plugin
     3## Version 2.1.1 plugin
    44PrintApp is a platform that allows your customers to personalize their Print orders on any web store.
    55It provides customers, an easy to use WYSIWYG (What you see is what you get) "Do It Yourself" interface for creating artworks for Print.
  • printapp/trunk/functions/general/customization.php

    r3205331 r3208714  
    22
    33    namespace printapp\functions\general;
     4
     5    function set_cookie() {
     6        if (!isset($_COOKIE[PRINT_APP_CUSTOMIZATION_KEY])) {
     7            $token = bin2hex(random_bytes(16));
     8            setcookie(PRINT_APP_CUSTOMIZATION_KEY, $token, time() + PRINT_APP_CUSTOMIZATION_DURATION, '/');
     9        }
     10    }
    411
    512    function get_user_token() {
  • printapp/trunk/functions/general/init_hooks.php

    r3195438 r3208714  
    4545           
    4646        }
     47
     48        add_action('init', 'printapp\\functions\\general\\set_cookie');
    4749       
    4850        // save project for both authenticated and guest users
  • printapp/trunk/printapp.php

    r3205331 r3208714  
    44 *  Plugin URI:         https://print.app
    55 *  Description:        Empower your customers to personalize products like Business Cards, Photo Prints, T-Shirts, Mugs, Banners, Canvases, etc. on your store before purchase
    6  *  Version:            2.1.0
     6 *  Version:            2.1.1
    77 *  Requires at least:  3.8
    88 *  Requires PHP:       5.2.4
     
    4646             *  @var string
    4747            */
    48             public $version = '2.1.0';
     48            public $version = '2.1.1';
    4949
    5050            /**
  • printapp/trunk/readme.txt

    r3205331 r3208714  
    44Requires at least: 3.8
    55Tested up to: 6.6
    6 Stable tag: 2.1.0
     6Stable tag: 2.1.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    102102== Changelog ==
    103103
     104= 2.1.1 =
     105Initialized the cookie before any header is set on the app
     106
    104107= 2.1.0 =
    105108Switched from using Sessions to using Wordpress Transients for saving customization details.
Note: See TracChangeset for help on using the changeset viewer.