Completed
Push — master ( eae0f6...0655df )
by Benjamin
10:54
created
src/class-wp-site-monitor.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 	 */
158 158
 	public function setting_section_html( $args ) {
159 159
 		?>
160
-		<p id="<?php echo esc_attr( $args['id'] ); ?>"><?php esc_html_e( 'WP Site Monitor settings text', 'wp-site-monitor' ); ?></p>
160
+		<p id="<?php echo esc_attr( $args[ 'id' ] ); ?>"><?php esc_html_e( 'WP Site Monitor settings text', 'wp-site-monitor' ); ?></p>
161 161
 		<?php
162 162
 	}
163 163
 
@@ -171,14 +171,14 @@  discard block
 block discarded – undo
171 171
 	public function setting_input_html( $args ) {
172 172
 		$options = get_option( 'wp_site_monitor' );
173 173
 		?>
174
-		<select id="<?php echo esc_attr( $args['label_for'] ); ?>"
175
-				data-custom="<?php echo esc_attr( $args['wporg_custom_data'] ); ?>"
176
-				name="wporg_options[<?php echo esc_attr( $args['label_for'] ); ?>]"
174
+		<select id="<?php echo esc_attr( $args[ 'label_for' ] ); ?>"
175
+				data-custom="<?php echo esc_attr( $args[ 'wporg_custom_data' ] ); ?>"
176
+				name="wporg_options[<?php echo esc_attr( $args[ 'label_for' ] ); ?>]"
177 177
 		>
178
-			<option value="red" <?php echo isset( $options[ $args['label_for'] ] ) ? ( selected( $options[ $args['label_for'] ], 'red', false ) ) : ( '' ); ?>>
178
+			<option value="red" <?php echo isset( $options[ $args[ 'label_for' ] ] ) ? ( selected( $options[ $args[ 'label_for' ] ], 'red', false ) ) : ( '' ); ?>>
179 179
 				<?php esc_html_e( 'red pill', 'wporg' ); ?>
180 180
 			</option>
181
-			<option value="blue" <?php echo isset( $options[ $args['label_for'] ] ) ? ( selected( $options[ $args['label_for'] ], 'blue', false ) ) : ( '' ); ?>>
181
+			<option value="blue" <?php echo isset( $options[ $args[ 'label_for' ] ] ) ? ( selected( $options[ $args[ 'label_for' ] ], 'blue', false ) ) : ( '' ); ?>>
182 182
 				<?php esc_html_e( 'blue pill', 'wporg' ); ?>
183 183
 			</option>
184 184
 		</select>
Please login to merge, or discard this patch.