File tree 2 files changed +4
-9
lines changed
2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -441,8 +441,9 @@ public function configuration_load() {
441
441
}
442
442
}
443
443
444
- $ this ->api_key = get_site_option ( 'jetpack_protect_key ' , false );
445
- $ this ->whitelist = get_site_option ( 'jetpack_protect_whitelist ' , array () );
444
+ $ this ->api_key = get_site_option ( 'jetpack_protect_key ' , false );
445
+ $ this ->whitelist = get_site_option ( 'jetpack_protect_whitelist ' , array () );
446
+ $ this ->user_ip = $ this ->get_ip ();
446
447
}
447
448
448
449
public function configuration_head () {
Original file line number Diff line number Diff line change 25
25
26
26
<?php else : // api key is good, show white list options ?>
27
27
28
- <?php if ( ! empty ( $ this ->whitelist_error ) ) : ?>
29
- <p class="error">
30
- <?php _e ( 'One or more of your IP Addresses were not valid. ' , 'jetpack ' ); ?>
31
- </p>
32
- <?php endif ; ?>
33
-
34
28
<div class="protect-status working">
35
29
<p>
36
30
<?php _e ( 'Protect is set-up and running! ' , 'jetpack ' ); ?>
130
124
IPv4 and IPv6 are acceptable.
131
125
</p>
132
126
<p>
133
- <strong>Your current IP: [value] </strong>
127
+ <strong><?php _e ( ' Your current IP: ' ); ?> <?php echo $ this -> user_ip ; ?> </strong>
134
128
</p>
135
129
<?php wp_nonce_field ( 'jetpack-protect ' ); ?>
136
130
<input type='hidden' name='action' value='jetpack_protect_save_whitelist' />
You can’t perform that action at this time.
0 commit comments