Plugin Directory

Changeset 3360709


Ignore:
Timestamp:
09/12/2025 06:17:28 PM (7 months ago)
Author:
mrboydwp
Message:

Update trunk to version 1.2.2

Location:
bcodecraft-blocks/trunk
Files:
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • bcodecraft-blocks/trunk/block.json

    r3360010 r3360709  
    33  "apiVersion": 3,
    44  "name": "bccb-blocks/snippet",
    5   "version": "1.2.1",
     5  "version": "1.2.2",
    66  "title": "bcodecraft Block",
    77  "category": "text",
  • bcodecraft-blocks/trunk/class-snippy-blocks-editor.php

    r3360010 r3360709  
    1616
    1717    public function registerBlock() {
    18         // WordPress 6.8.2 compatible block registration using block.json
    19         if (file_exists(SNIPPY_BLOCKS_PLUGIN_DIR . 'build/block.json')) {
    20             register_block_type(SNIPPY_BLOCKS_PLUGIN_DIR . 'build/block.json', [
     18        // WordPress 6.0+ compatible block registration
     19        // Register block type with proper namespace handling
     20        $block_json_path = SNIPPY_BLOCKS_PLUGIN_DIR . 'build';
     21       
     22        if (file_exists($block_json_path . '/block.json')) {
     23            // Production: use built block.json
     24            register_block_type($block_json_path, [
    2125                'render_callback' => [$this, 'renderBlockCallback'],
    2226            ]);
    2327        } else {
    24             // Fallback for development
    25             register_block_type(SNIPPY_BLOCKS_PLUGIN_DIR . 'src/block.json', [
     28            // Development: use source block.json 
     29            register_block_type(SNIPPY_BLOCKS_PLUGIN_DIR . 'src', [
    2630                'render_callback' => [$this, 'renderBlockCallback'],
    2731            ]);
  • bcodecraft-blocks/trunk/readme.txt

    r3360091 r3360709  
    66Tested up to: 6.8
    77Requires PHP: 7.4
    8 Stable tag: 1.2.1
     8Stable tag: 1.2.2
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
  • bcodecraft-blocks/trunk/snippy-blocks.php

    r3360010 r3360709  
    33 * Plugin Name: bcodecraft Blocks
    44 * Description: A modern WordPress plugin for managing and reusing content snippets with seamless Block Editor integration.
    5  * Version: 1.2.1
     5 * Version: 1.2.2
    66 * Author: bcodecraft
    77 * License: GPL v2 or later
    8  * Requires at least: 5.0
    9  * Tested up to: 6.8.2
     8 * Requires at least: 6.0
     9 * Tested up to: 6.8
    1010 * Requires PHP: 7.4
    1111 * Text Domain: bcodecraft-blocks
     
    1717}
    1818
    19 define('SNIPPY_BLOCKS_VERSION', '1.2.1');
     19define('SNIPPY_BLOCKS_VERSION', '1.2.2');
    2020define('SNIPPY_BLOCKS_PLUGIN_FILE', __FILE__);
    2121define('SNIPPY_BLOCKS_PLUGIN_DIR', plugin_dir_path(__FILE__));
  • bcodecraft-blocks/trunk/uninstall.php

    r3360010 r3360709  
    4242    $export_data = [
    4343        'export_date' => current_time('Y-m-d H:i:s'),
    44         'plugin_version' => '1.2.1',
     44        'plugin_version' => '1.2.2',
    4545        'snippets' => []
    4646    ];
Note: See TracChangeset for help on using the changeset viewer.