Plugin Directory

Changeset 3266793


Ignore:
Timestamp:
04/04/2025 08:35:37 AM (11 months ago)
Author:
blockskitdev
Message:
  • New demo compatibility update.
Location:
blockskit
Files:
21 added
3 edited

Legend:

Unmodified
Added
Removed
  • blockskit/trunk/blockskit.php

    r3260194 r3266793  
    77 * Author: blockskitdev
    88 * Author URI: https://blockskit.com/
    9  * Version: 1.1.2
     9 * Version: 1.1.3
    1010 * Text Domain: blockskit
    1111 * Domain Path: https://blockskit.com/free
  • blockskit/trunk/import/demo/functions.php

    r3260194 r3266793  
    494494                $demo_lists = get_transient( 'bk_import_demo_lists' );
    495495                break;
     496            case 'blockskit-accounting':
     497                $list_url = "https://gitlab.com/api/v4/projects/46250773/repository/files/blockskit-accounting-demo-list%2Ejson?ref=master";
     498                while( empty( get_transient( 'bk_import_demo_lists' ) ) ){
     499                    $request_demo_list_body = wp_remote_retrieve_body( wp_remote_get( $list_url ) );
     500                    if( is_wp_error( $request_demo_list_body ) ) {
     501                        return false; // Bail early
     502                    }
     503                    $demo_list_std     = json_decode( $request_demo_list_body, true );
     504                    $demo_list_array   = (array) $demo_list_std;
     505                    $demo_list_content = $demo_list_array['content'];
     506                    $demo_lists_json   = base64_decode( $demo_list_content );
     507                    $demo_lists        = json_decode( $demo_lists_json, true );
     508                    set_transient( 'bk_import_demo_lists', $demo_lists, MINUTE_IN_SECONDS );
     509                }
     510                $demo_lists = get_transient( 'bk_import_demo_lists' );
     511                break;
    496512            default:
    497513                $demo_lists = array();
  • blockskit/trunk/readme.txt

    r3260194 r3266793  
    55Tested up to: 6.7
    66Requires PHP: 7.4.9
    7 Stable tag: 1.1.2
     7Stable tag: 1.1.3
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    4242
    4343== Changelog ==
     44
     45= 1.1.3 =
     46* New demo compatibility update.
    4447
    4548= 1.1.2 =
Note: See TracChangeset for help on using the changeset viewer.