You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BadgeOS includes the CMB2 multiple select box & date range fields without checking if they are already loaded. (Though the BadgeOS date range field appears to be a non-object oriented copy of the code predating WDS adding it to GitHub.) On existing WordPress sites that already use CMB2 and those field types, this causes PHP Fatal errors like:
This is not an issue with CMB2. which safely loads itself only as needed. The issue is specifically with BadgeOS' loading of community produced additional field types for CMB2.
Description
BadgeOS includes the CMB2 multiple select box & date range fields without checking if they are already loaded. (Though the BadgeOS date range field appears to be a non-object oriented copy of the code predating WDS adding it to GitHub.) On existing WordPress sites that already use CMB2 and those field types, this causes PHP Fatal errors like:
PHP Fatal error: Cannot redeclare cmb2_render_select_multiple_field_type()
This is not an issue with CMB2. which safely loads itself only as needed. The issue is specifically with BadgeOS' loading of community produced additional field types for CMB2.
Steps to Reproduce
mu-plugins
.Actual result:
WP crashes fatally when running BadgeOS and other plugins that use the multiple select or date range custom field types.
Expected result:
WP works when running BadgeOS and other plugins that use the multiple select or date range custom field types.
Product Versions
Additional Information
N/A
The text was updated successfully, but these errors were encountered: