@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | ) ); |
31 | 31 | |
32 | 32 | if ( ! $field->group ) { |
33 | - return $this->rendered( $this->get_wp_editor( $a ) . $a['desc'] ); |
|
33 | + return $this->rendered( $this->get_wp_editor( $a ) . $a[ 'desc' ] ); |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | // wysiwyg fields in a group need some special handling. |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | |
55 | 55 | protected function get_wp_editor( $args ) { |
56 | 56 | ob_start(); |
57 | - wp_editor( $args['value'], $args['id'], $args['options'] ); |
|
57 | + wp_editor( $args[ 'value' ], $args[ 'id' ], $args[ 'options' ] ); |
|
58 | 58 | return ob_get_clean(); |
59 | 59 | } |
60 | 60 | |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | $group_id = $this->field->group->id(); |
63 | 63 | $field_id = $this->field->id( true ); |
64 | 64 | $options = $this->field->options(); |
65 | - $options['textarea_name'] = 'cmb2_n_' . $group_id . $field_id; |
|
65 | + $options[ 'textarea_name' ] = 'cmb2_n_' . $group_id . $field_id; |
|
66 | 66 | |
67 | 67 | // Initate the editor with special id/value/name so we can retrieve the options in JS. |
68 | 68 | $editor = $this->get_wp_editor( array( |