Plugin Directory

Changeset 3260194


Ignore:
Timestamp:
03/23/2025 06:57:25 AM (12 months ago)
Author:
blockskitdev
Message:
  • Child theme compatibility update.
Location:
blockskit
Files:
21 added
3 edited

Legend:

Unmodified
Added
Removed
  • blockskit/trunk/blockskit.php

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

    r3256881 r3260194  
    478478                $demo_lists = get_transient( 'bk_import_demo_lists' );
    479479                break;
     480            case 'blockskit-finance':
     481                $list_url = "https://gitlab.com/api/v4/projects/46250773/repository/files/blockskit-finance-demo-list%2Ejson?ref=master";
     482                while( empty( get_transient( 'bk_import_demo_lists' ) ) ){
     483                    $request_demo_list_body = wp_remote_retrieve_body( wp_remote_get( $list_url ) );
     484                    if( is_wp_error( $request_demo_list_body ) ) {
     485                        return false; // Bail early
     486                    }
     487                    $demo_list_std     = json_decode( $request_demo_list_body, true );
     488                    $demo_list_array   = (array) $demo_list_std;
     489                    $demo_list_content = $demo_list_array['content'];
     490                    $demo_lists_json   = base64_decode( $demo_list_content );
     491                    $demo_lists        = json_decode( $demo_lists_json, true );
     492                    set_transient( 'bk_import_demo_lists', $demo_lists, MINUTE_IN_SECONDS );
     493                }
     494                $demo_lists = get_transient( 'bk_import_demo_lists' );
     495                break;
    480496            default:
    481497                $demo_lists = array();
  • blockskit/trunk/readme.txt

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