Failed Conditions
Push — develop ( dbc9be...4ef903 )
by Reüel
03:15
created

views/html-admin-user-profile.php (1 issue)

Labels
Severity
1
<?php
2
3
/**
4
 * User profile.
5
 *
6
 * @since 1.1.6
7
 * @link https://github.com/WordPress/WordPress/blob/4.5.2/wp-admin/user-edit.php#L578-L600
8
 */
9
10
$customer_id_live = get_user_meta( $user->ID, '_pronamic_pay_mollie_customer_id', true );
11
$customer_id_test = get_user_meta( $user->ID, '_pronamic_pay_mollie_customer_id_test', true );
12
13
?>
14
<h2><?php esc_html_e( 'Mollie', 'pronamic_ideal' ); ?></h2>
15
16
<table class="form-table">
17
	<tr>
18
		<th>
19
			<label for="pronamic_pay_mollie_customer_id_live">
20
				<?php esc_html_e( 'Customer live ID', 'pronamic_ideal' ); ?>
21
			</label>
22
		</th>
23
		<td>
24
			<input id="pronamic_pay_mollie_customer_id_live" name="pronamic_pay_mollie_customer_id_live" type="text" value="<?php echo esc_attr( $customer_id_live ); ?>" class="regular-text" readonly="readonly" />
0 ignored issues
show
It seems like $customer_id_live can also be of type false; however, parameter $text of esc_attr() does only seem to accept string, maybe add an additional type check? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

24
			<input id="pronamic_pay_mollie_customer_id_live" name="pronamic_pay_mollie_customer_id_live" type="text" value="<?php echo esc_attr( /** @scrutinizer ignore-type */ $customer_id_live ); ?>" class="regular-text" readonly="readonly" />
Loading history...
25
		</td>
26
	</tr>
27
	<tr>
28
		<th>
29
			<label for="pronamic_pay_mollie_customer_id_test">
30
				<?php esc_html_e( 'Customer test ID', 'pronamic_ideal' ); ?>
31
			</label>
32
		</th>
33
		<td>
34
			<input id="pronamic_pay_mollie_customer_id_test" name="pronamic_pay_mollie_customer_id_test" type="text" value="<?php echo esc_attr( $customer_id_test ); ?>" class="regular-text" readonly="readonly" />
35
		</td>
36
	</tr>
37
</table>
38