Completed
Pull Request — master (#1728)
by Aristeides
04:08 queued 01:53
created
controls/php/class-kirki-control-base.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -136,37 +136,37 @@
 block discarded – undo
136 136
 		// Get the basics from the parent class.
137 137
 		parent::to_json();
138 138
 		// Default.
139
-		$this->json['default'] = $this->setting->default;
139
+		$this->json[ 'default' ] = $this->setting->default;
140 140
 		if ( isset( $this->default ) ) {
141
-			$this->json['default'] = $this->default;
141
+			$this->json[ 'default' ] = $this->default;
142 142
 		}
143 143
 		// Required.
144
-		$this->json['required'] = $this->required;
144
+		$this->json[ 'required' ] = $this->required;
145 145
 		// Output.
146
-		$this->json['output'] = $this->output;
146
+		$this->json[ 'output' ] = $this->output;
147 147
 		// Value.
148
-		$this->json['value'] = $this->value();
148
+		$this->json[ 'value' ] = $this->value();
149 149
 		// Choices.
150
-		$this->json['choices'] = $this->choices;
150
+		$this->json[ 'choices' ] = $this->choices;
151 151
 		// The link.
152
-		$this->json['link'] = $this->get_link();
152
+		$this->json[ 'link' ] = $this->get_link();
153 153
 		// The ID.
154
-		$this->json['id'] = $this->id;
154
+		$this->json[ 'id' ] = $this->id;
155 155
 		// Translation strings.
156
-		$this->json['l10n'] = $this->l10n();
156
+		$this->json[ 'l10n' ] = $this->l10n();
157 157
 		// The ajaxurl in case we need it.
158
-		$this->json['ajaxurl'] = admin_url( 'admin-ajax.php' );
158
+		$this->json[ 'ajaxurl' ] = admin_url( 'admin-ajax.php' );
159 159
 		// Input attributes.
160
-		$this->json['inputAttrs'] = '';
160
+		$this->json[ 'inputAttrs' ] = '';
161 161
 		foreach ( $this->input_attrs as $attr => $value ) {
162
-			$this->json['inputAttrs'] .= $attr . '="' . esc_attr( $value ) . '" ';
162
+			$this->json[ 'inputAttrs' ] .= $attr . '="' . esc_attr( $value ) . '" ';
163 163
 		}
164 164
 		// The kirki-config.
165
-		$this->json['kirkiConfig'] = $this->kirki_config;
165
+		$this->json[ 'kirkiConfig' ] = $this->kirki_config;
166 166
 		// The option-type.
167
-		$this->json['kirkiOptionType'] = $this->option_type;
167
+		$this->json[ 'kirkiOptionType' ] = $this->option_type;
168 168
 		// The option-name.
169
-		$this->json['kirkiOptionName'] = $this->option_name;
169
+		$this->json[ 'kirkiOptionName' ] = $this->option_name;
170 170
 	}
171 171
 
172 172
 	/**
Please login to merge, or discard this patch.