Changeset 3463653
- Timestamp:
- 02/17/2026 03:57:15 PM (3 weeks ago)
- Location:
- three-importer
- Files:
-
- 2 edited
- 5 copied
-
tags/1.0.3 (copied) (copied from three-importer/trunk)
-
tags/1.0.3/blocks-manifest.php (copied) (copied from three-importer/trunk/blocks-manifest.php)
-
tags/1.0.3/readme.txt (copied) (copied from three-importer/trunk/readme.txt) (1 diff)
-
tags/1.0.3/three-importer (copied) (copied from three-importer/trunk/three-importer)
-
tags/1.0.3/three-importer.php (copied) (copied from three-importer/trunk/three-importer.php) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/three-importer.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
three-importer/tags/1.0.3/readme.txt
r3463037 r3463653 5 5 Requires at least: 5.0 6 6 Tested up to: 6.9 7 Stable tag: 1.0. 27 Stable tag: 1.0.3 8 8 License: GPL-2.0-or-later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
three-importer/tags/1.0.3/three-importer.php
r3463037 r3463653 3 3 * Plugin Name: Three Importer 4 4 * Description: Create custom Three.js scenes via Block, Shortcode, or your own script. 5 * Version: 1.0. 25 * Version: 1.0.3 6 6 * Requires at least: 6.7 7 7 * Requires PHP: 7.4 … … 22 22 // register TI block 23 23 function ti3d_block_init() { 24 if ( function_exists( 'wp_register_block_types_from_metadata_collection' ) ) { 25 wp_register_block_types_from_metadata_collection( __DIR__ . '/blocks-manifest.php' ); 26 return; 27 } 28 29 $manifest_data = require __DIR__ . '/blocks-manifest.php'; 30 foreach ( array_keys( $manifest_data ) as $block_type ) { 31 register_block_type( __DIR__ . "/three-importer" ); 24 $manifest_path = __DIR__ . '/blocks-manifest.php'; 25 $block_dir = __DIR__ . '/three-importer'; 26 27 // use the manifest if it exists 28 if ( function_exists( 'wp_register_block_types_from_metadata_collection' ) && file_exists( $manifest_path ) ) { 29 wp_register_block_types_from_metadata_collection( $manifest_path, __DIR__ ); 30 } 31 // direct registration (fallback if manifest fails or is missing) 32 elseif ( file_exists( $block_dir . '/block.json' ) ) { 33 register_block_type( $block_dir ); 32 34 } 33 35 } -
three-importer/trunk/readme.txt
r3463037 r3463653 5 5 Requires at least: 5.0 6 6 Tested up to: 6.9 7 Stable tag: 1.0. 27 Stable tag: 1.0.3 8 8 License: GPL-2.0-or-later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
three-importer/trunk/three-importer.php
r3463037 r3463653 3 3 * Plugin Name: Three Importer 4 4 * Description: Create custom Three.js scenes via Block, Shortcode, or your own script. 5 * Version: 1.0. 25 * Version: 1.0.3 6 6 * Requires at least: 6.7 7 7 * Requires PHP: 7.4 … … 22 22 // register TI block 23 23 function ti3d_block_init() { 24 if ( function_exists( 'wp_register_block_types_from_metadata_collection' ) ) { 25 wp_register_block_types_from_metadata_collection( __DIR__ . '/blocks-manifest.php' ); 26 return; 27 } 28 29 $manifest_data = require __DIR__ . '/blocks-manifest.php'; 30 foreach ( array_keys( $manifest_data ) as $block_type ) { 31 register_block_type( __DIR__ . "/three-importer" ); 24 $manifest_path = __DIR__ . '/blocks-manifest.php'; 25 $block_dir = __DIR__ . '/three-importer'; 26 27 // use the manifest if it exists 28 if ( function_exists( 'wp_register_block_types_from_metadata_collection' ) && file_exists( $manifest_path ) ) { 29 wp_register_block_types_from_metadata_collection( $manifest_path, __DIR__ ); 30 } 31 // direct registration (fallback if manifest fails or is missing) 32 elseif ( file_exists( $block_dir . '/block.json' ) ) { 33 register_block_type( $block_dir ); 32 34 } 33 35 }
Note: See TracChangeset
for help on using the changeset viewer.