-
Notifications
You must be signed in to change notification settings - Fork 567
Open
Description
Describe the bug
The values of radio inputs are lost when the group containing them is moved by another group moving past it.
Steps to reproduce (I have confirmed I can reproduce this issue on the develop branch): Yes, reproduced on develop [98fed65]
- Install WordPress
- Install the following plugins: Classic Editor
- Register the meta box with the code provided below
- Create a new page
- Add two groups and select values on the radio buttons
- Move either of the groups
- Observe the radio buttons lose their value on the group that you didn't move
Screenshots
cmb2-group-radio-bug.mov
CMB2 Field Registration Code:
add_action('cmb2_admin_init', 'register_example_fields');
function register_example_fields() {
$example_box = new_cmb2_box(array(
'id' => 'example_box',
'title' => 'Example Box',
'object_types' => array('page')
));
$example_group = $example_box->add_field(array(
'id' => 'example_group',
'type' => 'group',
'description' => 'Example group',
'options' => array(
'group_title' => 'Group {#}',
'sortable' => true
)
));
$example_box->add_group_field($example_group, array(
'id' => 'example_radio',
'type' => 'radio',
'name' => 'Example radio',
'show_option_none' => true,
'options' => array(
'banana' => 'Banana',
'apple' => 'Apple',
'orange' => 'Orange'
)
));
}Your Environment
Browser name and version:
- Firefox 138.0.3 (aarch64)
- Google Chrome Version 136.0.7103.114 (Official Build) (arm64)
- Safari Version 18.4 (20621.1.15.11.10)
Operating System and version (desktop or mobile): macOS Sequoia 15.4.1 (Apple M1 Pro)
### wp-core ###
version: 6.8.1
site_language: en_US
user_language: en_US
timezone: +00:00
permalink: /%year%/%monthnum%/%day%/%postname%/
https_status: false
multisite: false
user_registration: 0
blog_public: 0
default_comment_status: open
environment_type: production
user_count: 1
dotorg_communication: true
### wp-active-theme ###
name: Twenty Twenty-Five (twentytwentyfive)
version: 1.2
author: the WordPress team
author_website: https://wordpress.org
parent_theme: none
theme_features: core-block-patterns, post-thumbnails, responsive-embeds, editor-styles, html5, automatic-feed-links, widgets-block-editor, block-templates, post-formats, editor-style
theme_path: /Users/axi/Herd/cmb2-bug/wp-content/themes/twentytwentyfive
auto_update: Disabled
### wp-plugins-active (3) ###
Classic Editor: version: 1.6.7, author: WordPress Contributors, Auto-updates disabled
CMB2: version: 2.11.0, author: CMB2 team, Auto-updates disabled
Example CMB2 Fields: author: (undefined), version: (undefined), Auto-updates disabled
### wp-server ###
server_architecture: Darwin 24.4.0 arm64
httpd_software: nginx/1.25.4
php_version: 8.3.21 64bit
php_sapi: fpm-fcgi
max_input_variables: 5000
time_limit: 30
memory_limit: 128M
admin_memory_limit: 256M
max_input_time: -1
upload_max_filesize: 64M
php_post_max_size: 64M
curl_version: 8.13.0 OpenSSL/3.5.0
suhosin: false
imagick_availability: true
pretty_permalinks: true
static_robotstxt_file: false
current: 2025-05-15T13:25:05+00:00
utc-time: Thursday, 15-May-25 13:25:05 UTC
server-time: 2025-05-15T13:25:04+00:00
### wp-database ###
extension: mysqli
server_version: 10.11.6-MariaDB
client_version: mysqlnd 8.3.21
max_allowed_packet: 16777216
max_connections: 151
### wp-constants ###
WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: /Users/axi/Herd/cmb2-bug/wp-content
WP_PLUGIN_DIR: /Users/axi/Herd/cmb2-bug/wp-content/plugins
WP_MEMORY_LIMIT: 40M
WP_MAX_MEMORY_LIMIT: 256M
WP_DEBUG: false
WP_DEBUG_DISPLAY: true
WP_DEBUG_LOG: false
SCRIPT_DEBUG: false
WP_CACHE: false
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_ENVIRONMENT_TYPE: undefined
WP_DEVELOPMENT_MODE: undefined
DB_CHARSET: utf8mb4
DB_COLLATE: undefined
### wp-filesystem ###
wordpress: writable
wp-content: writable
uploads: writable
plugins: writable
themes: writable
fonts: does not exist
Metadata
Metadata
Assignees
Labels
No labels