Completed
Push — develop ( 420693...04c983 )
by Aristeides
13s
created
controls/php/class-kirki-control-base.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -149,39 +149,39 @@
 block discarded – undo
149 149
 		// Get the basics from the parent class.
150 150
 		parent::to_json();
151 151
 		// Default.
152
-		$this->json['default'] = $this->setting->default;
152
+		$this->json[ 'default' ] = $this->setting->default;
153 153
 		if ( isset( $this->default ) ) {
154
-			$this->json['default'] = $this->default;
154
+			$this->json[ 'default' ] = $this->default;
155 155
 		}
156 156
 		// Required.
157
-		$this->json['required'] = $this->required;
157
+		$this->json[ 'required' ] = $this->required;
158 158
 		// Output.
159
-		$this->json['output'] = $this->output;
159
+		$this->json[ 'output' ] = $this->output;
160 160
 		// Value.
161
-		$this->json['value'] = $this->value();
161
+		$this->json[ 'value' ] = $this->value();
162 162
 		// Choices.
163
-		$this->json['choices'] = $this->choices;
163
+		$this->json[ 'choices' ] = $this->choices;
164 164
 		// The link.
165
-		$this->json['link'] = $this->get_link();
165
+		$this->json[ 'link' ] = $this->get_link();
166 166
 		// The ID.
167
-		$this->json['id'] = $this->id;
167
+		$this->json[ 'id' ] = $this->id;
168 168
 		// Translation strings.
169
-		$this->json['l10n'] = $this->l10n();
169
+		$this->json[ 'l10n' ] = $this->l10n();
170 170
 		// The ajaxurl in case we need it.
171
-		$this->json['ajaxurl'] = admin_url( 'admin-ajax.php' );
171
+		$this->json[ 'ajaxurl' ] = admin_url( 'admin-ajax.php' );
172 172
 		// Input attributes.
173
-		$this->json['inputAttrs'] = '';
173
+		$this->json[ 'inputAttrs' ] = '';
174 174
 		foreach ( $this->input_attrs as $attr => $value ) {
175
-			$this->json['inputAttrs'] .= $attr . '="' . esc_attr( $value ) . '" ';
175
+			$this->json[ 'inputAttrs' ] .= $attr . '="' . esc_attr( $value ) . '" ';
176 176
 		}
177 177
 		// The kirki-config.
178
-		$this->json['kirkiConfig'] = $this->kirki_config;
178
+		$this->json[ 'kirkiConfig' ] = $this->kirki_config;
179 179
 		// The option-type.
180
-		$this->json['kirkiOptionType'] = $this->option_type;
180
+		$this->json[ 'kirkiOptionType' ] = $this->option_type;
181 181
 		// The option-name.
182
-		$this->json['kirkiOptionName'] = $this->option_name;
182
+		$this->json[ 'kirkiOptionName' ] = $this->option_name;
183 183
 		// The preset.
184
-		$this->json['preset'] = $this->preset;
184
+		$this->json[ 'preset' ] = $this->preset;
185 185
 	}
186 186
 
187 187
 	/**
Please login to merge, or discard this patch.