There was an error while loading. Please reload this page.
1 parent b8475e9 commit 702ccedCopy full SHA for 702cced
src/Concerns/CMB2_Form.php
@@ -33,6 +33,10 @@ public function mb_object_type() {
33
* {@inheritdoc}
34
*/
35
public function get_field( $field, $field_group = null, $deprecated = false ) {
36
+if ( $field instanceof \CMB2_Field ) {
37
+return $field;
38
+}
39
+
40
$field = is_array( $field ) ? $field['id'] : (string) $field;
41
42
// Just for back-compat.
0 commit comments