Changeset 3451809
- Timestamp:
- 02/02/2026 07:54:19 AM (2 weeks ago)
- Location:
- meta-box
- Files:
-
- 10 added
- 4 deleted
- 14 edited
- 1 copied
-
tags/5.11.1 (copied) (copied from meta-box/trunk)
-
tags/5.11.1/css/block-editor.css (deleted)
-
tags/5.11.1/inc/fields/block-editor.php (modified) (3 diffs)
-
tags/5.11.1/inc/loader.php (modified) (1 diff)
-
tags/5.11.1/js/block-editor (added)
-
tags/5.11.1/js/block-editor.js (deleted)
-
tags/5.11.1/js/block-editor/build (added)
-
tags/5.11.1/js/block-editor/build/block-editor.asset.php (added)
-
tags/5.11.1/js/block-editor/build/block-editor.js (added)
-
tags/5.11.1/js/block-editor/build/style-block-editor.css (added)
-
tags/5.11.1/js/validation/validation.js (modified) (1 diff)
-
tags/5.11.1/meta-box.php (modified) (1 diff)
-
tags/5.11.1/readme.txt (modified) (2 diffs)
-
tags/5.11.1/src/Updater/Checker.php (modified) (1 diff)
-
tags/5.11.1/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/css/block-editor.css (deleted)
-
trunk/inc/fields/block-editor.php (modified) (3 diffs)
-
trunk/inc/loader.php (modified) (1 diff)
-
trunk/js/block-editor (added)
-
trunk/js/block-editor.js (deleted)
-
trunk/js/block-editor/build (added)
-
trunk/js/block-editor/build/block-editor.asset.php (added)
-
trunk/js/block-editor/build/block-editor.js (added)
-
trunk/js/block-editor/build/style-block-editor.css (added)
-
trunk/js/validation/validation.js (modified) (1 diff)
-
trunk/meta-box.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/src/Updater/Checker.php (modified) (1 diff)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
meta-box/tags/5.11.1/inc/fields/block-editor.php
r3440139 r3451809 2 2 defined( 'ABSPATH' ) || die; 3 3 4 /**5 * Block editor field leveraging the isolated block editor package.6 *7 * @see https://github.com/Automattic/isolated-block-editor8 */9 4 class RWMB_Block_Editor_Field extends RWMB_Field { 10 /** 11 * Enqueue scripts and styles for the field. 12 * @see https://github.com/Automattic/isolated-block-editor/blob/trunk/examples/wordpress-php/iso-gutenberg.php 13 */ 14 public static function admin_enqueue_scripts() { 15 wp_register_script( 16 'isolated-block-editor', 17 'https://cdn.jsdelivr.net/gh/Automattic/[email protected]/build-browser/isolated-block-editor.js', 18 [ 'wp-block-library', 'wp-format-library', 'wp-editor' ], 19 '2.29.0', 20 true 5 public static function admin_enqueue_scripts(): void { 6 $asset_file = RWMB_DIR . 'js/block-editor/build/block-editor.asset.php'; 7 $asset = require $asset_file; 8 9 wp_enqueue_style( 10 'rwmb-block-editor', 11 RWMB_URL . 'js/block-editor/build/style-block-editor.css', 12 [ 13 'wp-block-editor', // @wordpress/block-editor/build-style/style.css 14 'wp-components', // @wordpress/components/build-style/style.css 15 'wp-edit-blocks', // @wordpress/block-library/build-style/editor.css 16 'wp-block-library', // @wordpress/block-library/build-style/style.css 17 'wp-block-library-theme', // @wordpress/block-library/build-style/theme.css 18 'wp-format-library', 19 ], 20 $asset['version'] 21 21 ); 22 22 23 23 wp_enqueue_script( 24 24 'rwmb-block-editor', 25 RWMB_ JS_URL . 'block-editor.js',26 [ 'isolated-block-editor', 'jquery', 'rwmb' ],27 RWMB_VER,25 RWMB_URL . 'js/block-editor/build/block-editor.js', 26 array_merge( $asset['dependencies'], [ 'rwmb' ] ), 27 $asset['version'], 28 28 true 29 29 ); 30 30 31 wp_register_style( 32 'isolated-block-editor-core', 33 'https://cdn.jsdelivr.net/gh/Automattic/[email protected]/build-browser/core.css', 34 [], 35 '2.29.0' 36 ); 37 38 wp_register_style( 39 'isolated-block-editor', 40 'https://cdn.jsdelivr.net/gh/Automattic/[email protected]/build-browser/isolated-block-editor.css', 41 [ 'wp-edit-post', 'wp-format-library' ], 42 '2.29.0' 43 ); 44 45 wp_enqueue_style( 46 'rwmb-block-editor', 47 RWMB_CSS_URL . 'block-editor.css', 48 [ 'isolated-block-editor-core', 'isolated-block-editor' ], 49 RWMB_VER 50 ); 51 52 wp_tinymce_inline_scripts(); 53 wp_enqueue_editor(); 54 wp_enqueue_media(); 55 add_action( 'wp_print_footer_scripts', array( '_WP_Editors', 'print_default_editor_scripts' ), 45 ); 56 57 do_action( 'enqueue_block_editor_assets' ); 31 $block_editor_context = new WP_Block_Editor_Context(); 32 $editor_settings = get_block_editor_settings( [], $block_editor_context ); 33 RWMB_Helpers_Field::localize_script_once( 'rwmb-block-editor', 'rwmbBlockEditor', [ 34 'editor_settings' => $editor_settings, 35 ] ); 58 36 } 59 37 … … 69 47 $field = wp_parse_args( $field, [ 70 48 'allowed_blocks' => [], 49 'height' => '300px', 71 50 ] ); 72 51 … … 111 90 112 91 protected static function get_editor_settings( array $field ): array { 113 return [ 114 'iso' => [ 115 'blocks' => [ 116 'allowBlocks' => $field['allowed_blocks'], 117 ], 118 ], 119 'upload' => current_user_can( 'upload_files' ), 120 ]; 92 $keys = [ 'allowed_blocks', 'height' ]; 93 return array_filter( array_intersect_key( $field, array_flip( $keys ) ) ); 121 94 } 122 95 } -
meta-box/tags/5.11.1/inc/loader.php
r3440139 r3451809 8 8 protected function constants() { 9 9 // Script version, used to add version for scripts and styles. 10 define( 'RWMB_VER', '5.11. 0' );10 define( 'RWMB_VER', '5.11.1' ); 11 11 12 12 list( $path, $url ) = self::get_path( dirname( __DIR__ ) ); -
meta-box/tags/5.11.1/js/validation/validation.js
r3328336 r3451809 291 291 init() { 292 292 const submitButton = $( '#submit' ); 293 const validate = () => submitButton.prop( 'disabled', !this.$form.valid() ); 293 294 294 295 this.$form.validate( { 295 296 ...this.settings, 296 297 invalidHandler: null, 297 onkeyup: () => { 298 submitButton.prop( 'disabled', !this.$form.valid() ); 299 } 300 } ); 301 302 submitButton.prop( 'disabled', !this.$form.valid() ); 303 $( '#tag-name' ).on( 'blur', () => { 304 submitButton.prop( 'disabled', !this.$form.valid() ); 305 } ); 298 onkeyup: validate 299 } ); 300 301 $( '#tag-name' ).on( 'blur', validate ); 302 this.$form.on( 'change input', rwmb.inputSelectors, validate ); 303 validate(); 306 304 } 307 305 } -
meta-box/tags/5.11.1/meta-box.php
r3440139 r3451809 4 4 * Plugin URI: https://metabox.io 5 5 * Description: Create custom meta boxes and custom fields in WordPress. 6 * Version: 5.11. 06 * Version: 5.11.1 7 7 * Author: MetaBox.io 8 8 * Author URI: https://metabox.io -
meta-box/tags/5.11.1/readme.txt
r3440139 r3451809 6 6 Requires PHP: 7.1 7 7 Tested up to: 6.9 8 Stable tag: 5.11. 08 Stable tag: 5.11.1 9 9 License: GPLv2 or later 10 10 … … 149 149 == Changelog == 150 150 151 = 5.11.1 - 2026-02-02 = 152 153 **Improvements for the block editor field:** 154 155 - Add block inspector sidebar 156 - Add structure panel to show the list view of blocks 157 - Add fullscreen mode 158 - Add `height` settings (default is `300px`) and allow resizing the editor 159 160 **Fixes for the block editor field:** 161 162 - Fix cannot upload images for the image block 163 - Fix blank site editor when using the block editor field 164 - Fix custom rich text formats not working 165 - Fix conflicts with `image_advanced` and `file_advanced` fields 166 167 ** Other changes:** 168 169 - Fix cannot create new terms with required date/time fields 170 151 171 = 5.11.0 - 2026-01-15 = 152 172 -
meta-box/tags/5.11.1/src/Updater/Checker.php
r3440139 r3451809 165 165 'language' => get_locale(), 166 166 'php_version' => PHP_VERSION, 167 'product' => defined( 'META_BOX_LITE_DIR' ) ? 'meta-box-lite' : ( defined( 'META_BOX_AIO_DIR' ) ? 'meta-box-aio' : 'meta-box' ), 167 168 ] ); 168 169 -
meta-box/tags/5.11.1/vendor/composer/installed.php
r3440139 r3451809 2 2 'root' => array( 3 3 'name' => 'wpmetabox/meta-box', 4 'pretty_version' => '5.11. 0',5 'version' => '5.11. 0.0',6 'reference' => ' 8a284b25b237b8b5b8addf36a99d4464168a162b',4 'pretty_version' => '5.11.1', 5 'version' => '5.11.1.0', 6 'reference' => '21cc88efff8892a93a8218ba1b00a142eabb0d86', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 'wpmetabox/meta-box' => array( 14 'pretty_version' => '5.11. 0',15 'version' => '5.11. 0.0',16 'reference' => ' 8a284b25b237b8b5b8addf36a99d4464168a162b',14 'pretty_version' => '5.11.1', 15 'version' => '5.11.1.0', 16 'reference' => '21cc88efff8892a93a8218ba1b00a142eabb0d86', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../', -
meta-box/trunk/inc/fields/block-editor.php
r3440139 r3451809 2 2 defined( 'ABSPATH' ) || die; 3 3 4 /**5 * Block editor field leveraging the isolated block editor package.6 *7 * @see https://github.com/Automattic/isolated-block-editor8 */9 4 class RWMB_Block_Editor_Field extends RWMB_Field { 10 /** 11 * Enqueue scripts and styles for the field. 12 * @see https://github.com/Automattic/isolated-block-editor/blob/trunk/examples/wordpress-php/iso-gutenberg.php 13 */ 14 public static function admin_enqueue_scripts() { 15 wp_register_script( 16 'isolated-block-editor', 17 'https://cdn.jsdelivr.net/gh/Automattic/[email protected]/build-browser/isolated-block-editor.js', 18 [ 'wp-block-library', 'wp-format-library', 'wp-editor' ], 19 '2.29.0', 20 true 5 public static function admin_enqueue_scripts(): void { 6 $asset_file = RWMB_DIR . 'js/block-editor/build/block-editor.asset.php'; 7 $asset = require $asset_file; 8 9 wp_enqueue_style( 10 'rwmb-block-editor', 11 RWMB_URL . 'js/block-editor/build/style-block-editor.css', 12 [ 13 'wp-block-editor', // @wordpress/block-editor/build-style/style.css 14 'wp-components', // @wordpress/components/build-style/style.css 15 'wp-edit-blocks', // @wordpress/block-library/build-style/editor.css 16 'wp-block-library', // @wordpress/block-library/build-style/style.css 17 'wp-block-library-theme', // @wordpress/block-library/build-style/theme.css 18 'wp-format-library', 19 ], 20 $asset['version'] 21 21 ); 22 22 23 23 wp_enqueue_script( 24 24 'rwmb-block-editor', 25 RWMB_ JS_URL . 'block-editor.js',26 [ 'isolated-block-editor', 'jquery', 'rwmb' ],27 RWMB_VER,25 RWMB_URL . 'js/block-editor/build/block-editor.js', 26 array_merge( $asset['dependencies'], [ 'rwmb' ] ), 27 $asset['version'], 28 28 true 29 29 ); 30 30 31 wp_register_style( 32 'isolated-block-editor-core', 33 'https://cdn.jsdelivr.net/gh/Automattic/[email protected]/build-browser/core.css', 34 [], 35 '2.29.0' 36 ); 37 38 wp_register_style( 39 'isolated-block-editor', 40 'https://cdn.jsdelivr.net/gh/Automattic/[email protected]/build-browser/isolated-block-editor.css', 41 [ 'wp-edit-post', 'wp-format-library' ], 42 '2.29.0' 43 ); 44 45 wp_enqueue_style( 46 'rwmb-block-editor', 47 RWMB_CSS_URL . 'block-editor.css', 48 [ 'isolated-block-editor-core', 'isolated-block-editor' ], 49 RWMB_VER 50 ); 51 52 wp_tinymce_inline_scripts(); 53 wp_enqueue_editor(); 54 wp_enqueue_media(); 55 add_action( 'wp_print_footer_scripts', array( '_WP_Editors', 'print_default_editor_scripts' ), 45 ); 56 57 do_action( 'enqueue_block_editor_assets' ); 31 $block_editor_context = new WP_Block_Editor_Context(); 32 $editor_settings = get_block_editor_settings( [], $block_editor_context ); 33 RWMB_Helpers_Field::localize_script_once( 'rwmb-block-editor', 'rwmbBlockEditor', [ 34 'editor_settings' => $editor_settings, 35 ] ); 58 36 } 59 37 … … 69 47 $field = wp_parse_args( $field, [ 70 48 'allowed_blocks' => [], 49 'height' => '300px', 71 50 ] ); 72 51 … … 111 90 112 91 protected static function get_editor_settings( array $field ): array { 113 return [ 114 'iso' => [ 115 'blocks' => [ 116 'allowBlocks' => $field['allowed_blocks'], 117 ], 118 ], 119 'upload' => current_user_can( 'upload_files' ), 120 ]; 92 $keys = [ 'allowed_blocks', 'height' ]; 93 return array_filter( array_intersect_key( $field, array_flip( $keys ) ) ); 121 94 } 122 95 } -
meta-box/trunk/inc/loader.php
r3440139 r3451809 8 8 protected function constants() { 9 9 // Script version, used to add version for scripts and styles. 10 define( 'RWMB_VER', '5.11. 0' );10 define( 'RWMB_VER', '5.11.1' ); 11 11 12 12 list( $path, $url ) = self::get_path( dirname( __DIR__ ) ); -
meta-box/trunk/js/validation/validation.js
r3328336 r3451809 291 291 init() { 292 292 const submitButton = $( '#submit' ); 293 const validate = () => submitButton.prop( 'disabled', !this.$form.valid() ); 293 294 294 295 this.$form.validate( { 295 296 ...this.settings, 296 297 invalidHandler: null, 297 onkeyup: () => { 298 submitButton.prop( 'disabled', !this.$form.valid() ); 299 } 300 } ); 301 302 submitButton.prop( 'disabled', !this.$form.valid() ); 303 $( '#tag-name' ).on( 'blur', () => { 304 submitButton.prop( 'disabled', !this.$form.valid() ); 305 } ); 298 onkeyup: validate 299 } ); 300 301 $( '#tag-name' ).on( 'blur', validate ); 302 this.$form.on( 'change input', rwmb.inputSelectors, validate ); 303 validate(); 306 304 } 307 305 } -
meta-box/trunk/meta-box.php
r3440139 r3451809 4 4 * Plugin URI: https://metabox.io 5 5 * Description: Create custom meta boxes and custom fields in WordPress. 6 * Version: 5.11. 06 * Version: 5.11.1 7 7 * Author: MetaBox.io 8 8 * Author URI: https://metabox.io -
meta-box/trunk/readme.txt
r3440139 r3451809 6 6 Requires PHP: 7.1 7 7 Tested up to: 6.9 8 Stable tag: 5.11. 08 Stable tag: 5.11.1 9 9 License: GPLv2 or later 10 10 … … 149 149 == Changelog == 150 150 151 = 5.11.1 - 2026-02-02 = 152 153 **Improvements for the block editor field:** 154 155 - Add block inspector sidebar 156 - Add structure panel to show the list view of blocks 157 - Add fullscreen mode 158 - Add `height` settings (default is `300px`) and allow resizing the editor 159 160 **Fixes for the block editor field:** 161 162 - Fix cannot upload images for the image block 163 - Fix blank site editor when using the block editor field 164 - Fix custom rich text formats not working 165 - Fix conflicts with `image_advanced` and `file_advanced` fields 166 167 ** Other changes:** 168 169 - Fix cannot create new terms with required date/time fields 170 151 171 = 5.11.0 - 2026-01-15 = 152 172 -
meta-box/trunk/src/Updater/Checker.php
r3440139 r3451809 165 165 'language' => get_locale(), 166 166 'php_version' => PHP_VERSION, 167 'product' => defined( 'META_BOX_LITE_DIR' ) ? 'meta-box-lite' : ( defined( 'META_BOX_AIO_DIR' ) ? 'meta-box-aio' : 'meta-box' ), 167 168 ] ); 168 169 -
meta-box/trunk/vendor/composer/installed.php
r3440139 r3451809 2 2 'root' => array( 3 3 'name' => 'wpmetabox/meta-box', 4 'pretty_version' => '5.11. 0',5 'version' => '5.11. 0.0',6 'reference' => ' 8a284b25b237b8b5b8addf36a99d4464168a162b',4 'pretty_version' => '5.11.1', 5 'version' => '5.11.1.0', 6 'reference' => '21cc88efff8892a93a8218ba1b00a142eabb0d86', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 'wpmetabox/meta-box' => array( 14 'pretty_version' => '5.11. 0',15 'version' => '5.11. 0.0',16 'reference' => ' 8a284b25b237b8b5b8addf36a99d4464168a162b',14 'pretty_version' => '5.11.1', 15 'version' => '5.11.1.0', 16 'reference' => '21cc88efff8892a93a8218ba1b00a142eabb0d86', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.