Test Setup Failed
Push — develop ( 154370...2b4e74 )
by Aristeides
02:40
created
field/class-kirki-field-code.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -59,10 +59,10 @@  discard block
 block discarded – undo
59 59
 	 * @access protected
60 60
 	 */
61 61
 	protected function set_choices() {
62
-		if ( ! isset( $this->choices['language'] ) ) {
62
+		if ( ! isset( $this->choices[ 'language' ] ) ) {
63 63
 			return;
64 64
 		}
65
-		$language = $this->choices['language'];
65
+		$language = $this->choices[ 'language' ];
66 66
 		switch ( $language ) {
67 67
 			case 'json':
68 68
 			case 'xml':
@@ -90,11 +90,11 @@  discard block
 block discarded – undo
90 90
 				$language = 'text/x-' . $language;
91 91
 				break;
92 92
 		}
93
-		if ( ! isset( $this->editor_settings['codemirror'] ) ) {
94
-			$this->editor_settings['codemirror'] = array();
93
+		if ( ! isset( $this->editor_settings[ 'codemirror' ] ) ) {
94
+			$this->editor_settings[ 'codemirror' ] = array();
95 95
 		}
96
-		if ( ! isset( $this->editor_settings['codemirror']['mode'] ) ) {
97
-			$this->editor_settings['codemirror']['mode'] = $language;
96
+		if ( ! isset( $this->editor_settings[ 'codemirror' ][ 'mode' ] ) ) {
97
+			$this->editor_settings[ 'codemirror' ][ 'mode' ] = $language;
98 98
 		}
99 99
 	}
100 100
 
Please login to merge, or discard this patch.