Changeset 3360709
- Timestamp:
- 09/12/2025 06:17:28 PM (7 months ago)
- Location:
- bcodecraft-blocks/trunk
- Files:
-
- 1 deleted
- 5 edited
-
block.json (modified) (1 diff)
-
class-snippy-blocks-editor.php (modified) (1 diff)
-
includes (deleted)
-
readme.txt (modified) (1 diff)
-
snippy-blocks.php (modified) (2 diffs)
-
uninstall.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
bcodecraft-blocks/trunk/block.json
r3360010 r3360709 3 3 "apiVersion": 3, 4 4 "name": "bccb-blocks/snippet", 5 "version": "1.2. 1",5 "version": "1.2.2", 6 6 "title": "bcodecraft Block", 7 7 "category": "text", -
bcodecraft-blocks/trunk/class-snippy-blocks-editor.php
r3360010 r3360709 16 16 17 17 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, [ 21 25 'render_callback' => [$this, 'renderBlockCallback'], 22 26 ]); 23 27 } else { 24 // Fallback for development25 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', [ 26 30 'render_callback' => [$this, 'renderBlockCallback'], 27 31 ]); -
bcodecraft-blocks/trunk/readme.txt
r3360091 r3360709 6 6 Tested up to: 6.8 7 7 Requires PHP: 7.4 8 Stable tag: 1.2. 18 Stable tag: 1.2.2 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
bcodecraft-blocks/trunk/snippy-blocks.php
r3360010 r3360709 3 3 * Plugin Name: bcodecraft Blocks 4 4 * Description: A modern WordPress plugin for managing and reusing content snippets with seamless Block Editor integration. 5 * Version: 1.2. 15 * Version: 1.2.2 6 6 * Author: bcodecraft 7 7 * License: GPL v2 or later 8 * Requires at least: 5.09 * Tested up to: 6.8 .28 * Requires at least: 6.0 9 * Tested up to: 6.8 10 10 * Requires PHP: 7.4 11 11 * Text Domain: bcodecraft-blocks … … 17 17 } 18 18 19 define('SNIPPY_BLOCKS_VERSION', '1.2. 1');19 define('SNIPPY_BLOCKS_VERSION', '1.2.2'); 20 20 define('SNIPPY_BLOCKS_PLUGIN_FILE', __FILE__); 21 21 define('SNIPPY_BLOCKS_PLUGIN_DIR', plugin_dir_path(__FILE__)); -
bcodecraft-blocks/trunk/uninstall.php
r3360010 r3360709 42 42 $export_data = [ 43 43 'export_date' => current_time('Y-m-d H:i:s'), 44 'plugin_version' => '1.2. 1',44 'plugin_version' => '1.2.2', 45 45 'snippets' => [] 46 46 ];
Note: See TracChangeset
for help on using the changeset viewer.