includes/admin/settings/class-settings-cmb2-backward-compatibility.php 1 location
|
@@ 327-330 (lines=4) @@
|
324 |
|
} |
325 |
|
|
326 |
|
// Set wrapper class if any. |
327 |
|
if ( ! empty( $field['row_classes'] ) ) { |
328 |
|
$field['wrapper_class'] = $field['row_classes']; |
329 |
|
unset( $field['row_classes'] ); |
330 |
|
} |
331 |
|
|
332 |
|
$field['name'] = ! isset( $field['name'] ) ? '' : $field['name']; |
333 |
|
$field['desc'] = ! isset( $field['desc'] ) ? '' : $field['desc']; |
includes/admin/give-metabox-functions.php 1 location
|
@@ 147-150 (lines=4) @@
|
144 |
|
unset( $field['class'] ); |
145 |
|
|
146 |
|
// CMB2 compatibility: Set wrapper class if any. |
147 |
|
if ( ! empty( $field['row_classes'] ) ) { |
148 |
|
$field['wrapper_class'] = $field['row_classes']; |
149 |
|
unset( $field['row_classes'] ); |
150 |
|
} |
151 |
|
|
152 |
|
// Set field params on basis of cmb2 field name. |
153 |
|
switch ( $field['type'] ) { |