WP Statistics - Version 12.6.2

Version Description

  • Fixed issue to get IP in some servers that stored 127.0.0.1
Download this release

Release Info

Developer mostafa.s1990
Plugin Icon 128x128 WP Statistics
Version 12.6.2
Comparing to
See all releases

Code changes from version 12.6.1 to 12.6.2

includes/classes/class-wp-statistics.php CHANGED
@@ -782,7 +782,9 @@ class WP_Statistics {
782
  }
783
 
784
  // Get User IP
785
- $whip = new \Vectorface\Whip\Whip();
 
 
786
  $user_ip = $whip->getValidIpAddress();
787
  if ( $user_ip != false ) {
788
  $this->ip = $user_ip;
782
  }
783
 
784
  // Get User IP
785
+ $whip = new \Vectorface\Whip\Whip( Vectorface\Whip\Whip::REMOTE_ADDR );
786
+ $whip->addCustomHeader('HTTP_CLIENT_IP');
787
+ $whip->addCustomHeader('HTTP_X_REAL_IP');
788
  $user_ip = $whip->getValidIpAddress();
789
  if ( $user_ip != false ) {
790
  $this->ip = $user_ip;
includes/optimization/tabs/wps-optimization-resources.php CHANGED
@@ -1,275 +1,294 @@
1
- <div class="wrap wps-wrap">
2
- <table class="form-table">
3
- <tbody>
4
- <tr valign="top">
5
- <th scope="row" colspan="2"><h3><?php _e( 'Resources', 'wp-statistics' ); ?></h3></th>
6
- </tr>
7
-
8
- <tr valign="top">
9
- <th scope="row">
10
- <?php _e( 'Memory usage in PHP', 'wp-statistics' ); ?>:
11
- </th>
12
-
13
- <td>
14
- <strong><?php echo number_format_i18n( memory_get_usage() ); ?></strong> <?php _e( 'Bytes', 'wp-statistics' ); ?>
15
- <p class="description"><?php _e( 'Memory usage in PHP', 'wp-statistics' ); ?></p>
16
- </td>
17
- </tr>
18
-
19
- <tr valign="top">
20
- <th scope="row">
21
- <?php _e( 'PHP Memory Limit', 'wp-statistics' ); ?>:
22
- </th>
23
-
24
- <td>
25
- <strong><?php echo ini_get( 'memory_limit' ); ?></strong>
26
- <p class="description"><?php _e( 'The memory limit a script is allowed to consume, set in php.ini.', 'wp-statistics' ); ?></p>
27
- </td>
28
- </tr>
29
-
30
- <?php
31
- foreach ( $result as $table_name => $number_row ) {
32
- ?>
33
- <tr valign="top">
34
- <th scope="row">
35
- <?php echo sprintf( __( 'Number of rows in the %s table', 'wp-statistics' ), '<code>' . $table_name . '</code>' ); ?>
36
- :
37
- </th>
38
- <td>
39
- <strong><?php echo number_format_i18n( $number_row ); ?></strong> <?php echo _n( 'Row', 'Rows', number_format_i18n( $number_row ), 'wp-statistics' ); ?>
40
- <p class="description"><?php _e( 'Number of rows', 'wp-statistics' ); ?></p>
41
- </td>
42
- </tr>
43
- <?php
44
- }
45
- ?>
46
-
47
- <tr valign="top">
48
- <th scope="row" colspan="2"><h3><?php _e( 'Version Info', 'wp-statistics' ); ?></h3></th>
49
- </tr>
50
-
51
- <tr valign="top">
52
- <th scope="row">
53
- <?php _e( 'WP Statistics Version', 'wp-statistics' ); ?>:
54
- </th>
55
-
56
- <td>
57
- <strong><?php echo WP_Statistics::$reg['version']; ?></strong>
58
- <p class="description"><?php _e( 'The WP Statistics version you are running.', 'wp-statistics' ); ?></p>
59
- </td>
60
- </tr>
61
-
62
- <tr valign="top">
63
- <th scope="row">
64
- <?php _e( 'PHP Version', 'wp-statistics' ); ?>:
65
- </th>
66
-
67
- <td>
68
- <strong><?php echo phpversion(); ?></strong>
69
- <p class="description"><?php _e( 'The PHP version you are running.', 'wp-statistics' ); ?></p>
70
- </td>
71
- </tr>
72
-
73
- <tr valign="top">
74
- <th scope="row">
75
- <?php _e( 'PHP Safe Mode', 'wp-statistics' ); ?>:
76
- </th>
77
-
78
- <td>
79
- <strong><?php if ( ini_get( 'safe_mode' ) ) {
80
- _e( 'Yes', 'wp-statistics' );
81
- } else {
82
- _e( 'No', 'wp-statistics' );
83
- } ?></strong>
84
-
85
- <p class="description"><?php _e( 'Is PHP Safe Mode active. The GeoIP code is not supported in Safe Mode.', 'wp-statistics' ); ?></p>
86
- </td>
87
- </tr>
88
-
89
- <tr valign="top">
90
- <th scope="row">
91
- <?php _e( 'PHP IPv6 Enabled', 'wp-statistics' ); ?>:
92
- </th>
93
-
94
- <td>
95
- <strong><?php if ( defined( 'AF_INET6' ) ) {
96
- _e( 'Yes', 'wp-statistics' );
97
- } else {
98
- _e( 'No', 'wp-statistics' );
99
- } ?></strong>
100
-
101
- <p class="description"><?php _e( 'Is PHP compiled with IPv6 support. You may see warning messages in your PHP log if it is not and you receive HTTP headers with IPv6 addresses in them.', 'wp-statistics' ); ?></p>
102
- </td>
103
- </tr>
104
-
105
- <tr valign="top">
106
- <th scope="row">
107
- <?php _e( 'jQuery Version', 'wp-statistics' ); ?>:
108
- </th>
109
-
110
- <td>
111
- <strong>
112
- <script type="text/javascript">document.write(jQuery().jquery);</script>
113
- </strong>
114
-
115
- <p class="description"><?php _e( 'The jQuery version you are running.', 'wp-statistics' ); ?></p>
116
- </td>
117
- </tr>
118
-
119
- <tr valign="top">
120
- <th scope="row">
121
- <?php _e( 'cURL Version', 'wp-statistics' ); ?>:
122
- </th>
123
-
124
- <td>
125
- <strong><?php if ( function_exists( 'curl_version' ) ) {
126
- $curl_ver = curl_version();
127
- echo $curl_ver['version'];
128
- } else {
129
- _e( 'cURL not installed', 'wp-statistics' );
130
- } ?></strong>
131
-
132
- <p class="description"><?php _e(
133
- 'The PHP cURL Extension version you are running. cURL is required for the GeoIP code, if it is not installed GeoIP will be disabled.',
134
- 'wp-statistics'
135
- ); ?></p>
136
- </td>
137
- </tr>
138
-
139
- <tr valign="top">
140
- <th scope="row">
141
- <?php _e( 'Zlib gzopen()', 'wp-statistics' ); ?>:
142
- </th>
143
-
144
- <td>
145
- <strong><?php if ( function_exists( 'gzopen' ) ) {
146
- _e( 'Installed', 'wp-statistics' );
147
- } else {
148
- _e( 'Not installed', 'wp-statistics' );
149
- } ?></strong>
150
-
151
- <p class="description"><?php _e( 'If the gzopen() function is installed. The gzopen() function is required for the GeoIP database to be downloaded successfully.', 'wp-statistics' ); ?></p>
152
- </td>
153
- </tr>
154
-
155
- <tr valign="top">
156
- <th scope="row">
157
- <?php _e( 'GMP PHP extension', 'wp-statistics' ); ?>:
158
- </th>
159
-
160
- <td>
161
- <strong><?php if ( extension_loaded( 'gmp' ) ) {
162
- _e( 'Installed', 'wp-statistics' );
163
- } else {
164
- _e( 'Not installed', 'wp-statistics' );
165
- } ?></strong>
166
-
167
- <p class="description"><?php _e( 'If the GMP Math PHP extension is loaded, either GMP or BCMath is required for the GeoIP database to be read successfully.', 'wp-statistics' ); ?></p>
168
- </td>
169
- </tr>
170
-
171
- <tr valign="top">
172
- <th scope="row">
173
- <?php _e( 'BCMath PHP extension', 'wp-statistics' ); ?>:
174
- </th>
175
-
176
- <td>
177
- <strong><?php if ( extension_loaded( 'bcmath' ) ) {
178
- _e( 'Installed', 'wp-statistics' );
179
- } else {
180
- _e( 'Not installed', 'wp-statistics' );
181
- } ?></strong>
182
-
183
- <p class="description"><?php _e( 'If the BCMath PHP extension is loaded, either GMP or BCMath is required for the GeoIP database to be read successfully.', 'wp-statistics' ); ?></p>
184
- </td>
185
- </tr>
186
-
187
- <tr valign="top">
188
- <th scope="row" colspan="2"><h3><?php _e( 'File Info', 'wp-statistics' ); ?></h3></th>
189
- </tr>
190
-
191
- <tr valign="top">
192
- <th scope="row">
193
- <?php _e( 'GeoIP Database', 'wp-statistics' ); ?>:
194
- </th>
195
-
196
- <td>
197
- <strong><?php $upload_dir = wp_upload_dir();
198
- $GeoIP_filename = $upload_dir['basedir'] . '/wp-statistics/GeoLite2-Country.mmdb';
199
- $GeoIP_filedate = @filemtime( $GeoIP_filename );
200
-
201
- if ( $GeoIP_filedate === false ) {
202
- _e( 'Database file does not exist.', 'wp-statistics' );
203
- } else {
204
- echo size_format( @filesize( $GeoIP_filename ), 2 ) . __( ', created on ', 'wp-statistics' ) . date_i18n( get_option( 'date_format' ) . ' @ ' . get_option( 'time_format' ), $GeoIP_filedate );
205
- } ?></strong>
206
-
207
- <p class="description"><?php _e( 'The file size and date of the GeoIP database.', 'wp-statistics' ); ?></p>
208
- </td>
209
- </tr>
210
-
211
- <tr valign="top">
212
- <th scope="row" colspan="2"><h3><?php _e( 'Client Info', 'wp-statistics' ); ?></h3></th>
213
- </tr>
214
-
215
- <tr valign="top">
216
- <th scope="row">
217
- <?php _e( 'Client IP', 'wp-statistics' ); ?>:
218
- </th>
219
-
220
- <td>
221
- <strong><?php echo $WP_Statistics->get_IP(); ?></strong>
222
- <p class="description"><?php _e( 'The client IP address.', 'wp-statistics' ); ?></p>
223
- </td>
224
- </tr>
225
-
226
- <tr valign="top">
227
- <th scope="row">
228
- <?php _e( 'User Agent', 'wp-statistics' ); ?>:
229
- </th>
230
-
231
- <td>
232
- <strong><?php echo htmlentities( $_SERVER['HTTP_USER_AGENT'], ENT_QUOTES ); ?></strong>
233
- <p class="description"><?php _e( 'The client user agent string.', 'wp-statistics' ); ?></p>
234
- </td>
235
- </tr>
236
-
237
- <tr valign="top">
238
- <th scope="row">
239
- <?php _e( 'Browser', 'wp-statistics' ); ?>:
240
- </th>
241
-
242
- <td>
243
- <strong><?php $agent = $WP_Statistics->get_UserAgent();
244
- echo $agent['browser'];
245
- ?></strong>
246
-
247
- <p class="description"><?php _e( 'The detected client browser.', 'wp-statistics' ); ?></p>
248
- </td>
249
- </tr>
250
-
251
- <tr valign="top">
252
- <th scope="row">
253
- <?php _e( 'Version', 'wp-statistics' ); ?>:
254
- </th>
255
-
256
- <td>
257
- <strong><?php echo $agent['version']; ?></strong>
258
- <p class="description"><?php _e( 'The detected client browser version.', 'wp-statistics' ); ?></p>
259
- </td>
260
- </tr>
261
-
262
- <tr valign="top">
263
- <th scope="row">
264
- <?php _e( 'Platform', 'wp-statistics' ); ?>:
265
- </th>
266
-
267
- <td>
268
- <strong><?php echo $agent['platform']; ?></strong>
269
- <p class="description"><?php _e( 'The detected client platform.', 'wp-statistics' ); ?></p>
270
- </td>
271
- </tr>
272
-
273
- </tbody>
274
- </table>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
275
  </div>
1
+ <div class="wrap wps-wrap">
2
+ <table class="form-table">
3
+ <tbody>
4
+ <tr valign="top">
5
+ <th scope="row" colspan="2"><h3><?php _e( 'Resources', 'wp-statistics' ); ?></h3></th>
6
+ </tr>
7
+
8
+ <tr valign="top">
9
+ <th scope="row">
10
+ <?php _e( 'Memory usage in PHP', 'wp-statistics' ); ?>:
11
+ </th>
12
+
13
+ <td>
14
+ <strong><?php echo number_format_i18n( memory_get_usage() ); ?></strong> <?php _e( 'Bytes', 'wp-statistics' ); ?>
15
+ <p class="description"><?php _e( 'Memory usage in PHP', 'wp-statistics' ); ?></p>
16
+ </td>
17
+ </tr>
18
+
19
+ <tr valign="top">
20
+ <th scope="row">
21
+ <?php _e( 'PHP Memory Limit', 'wp-statistics' ); ?>:
22
+ </th>
23
+
24
+ <td>
25
+ <strong><?php echo ini_get( 'memory_limit' ); ?></strong>
26
+ <p class="description"><?php _e( 'The memory limit a script is allowed to consume, set in php.ini.', 'wp-statistics' ); ?></p>
27
+ </td>
28
+ </tr>
29
+
30
+ <?php
31
+ foreach ( $result as $table_name => $number_row ) {
32
+ ?>
33
+ <tr valign="top">
34
+ <th scope="row">
35
+ <?php echo sprintf( __( 'Number of rows in the %s table', 'wp-statistics' ), '<code>' . $table_name . '</code>' ); ?>
36
+ :
37
+ </th>
38
+ <td>
39
+ <strong><?php echo number_format_i18n( $number_row ); ?></strong> <?php echo _n( 'Row', 'Rows', number_format_i18n( $number_row ), 'wp-statistics' ); ?>
40
+ <p class="description"><?php _e( 'Number of rows', 'wp-statistics' ); ?></p>
41
+ </td>
42
+ </tr>
43
+ <?php
44
+ }
45
+ ?>
46
+
47
+ <tr valign="top">
48
+ <th scope="row" colspan="2"><h3><?php _e( 'Version Info', 'wp-statistics' ); ?></h3></th>
49
+ </tr>
50
+
51
+ <tr valign="top">
52
+ <th scope="row">
53
+ <?php _e( 'WP Statistics Version', 'wp-statistics' ); ?>:
54
+ </th>
55
+
56
+ <td>
57
+ <strong><?php echo WP_Statistics::$reg['version']; ?></strong>
58
+ <p class="description"><?php _e( 'The WP Statistics version you are running.', 'wp-statistics' ); ?></p>
59
+ </td>
60
+ </tr>
61
+
62
+ <tr valign="top">
63
+ <th scope="row">
64
+ <?php _e( 'PHP Version', 'wp-statistics' ); ?>:
65
+ </th>
66
+
67
+ <td>
68
+ <strong><?php echo phpversion(); ?></strong>
69
+ <p class="description"><?php _e( 'The PHP version you are running.', 'wp-statistics' ); ?></p>
70
+ </td>
71
+ </tr>
72
+
73
+ <tr valign="top">
74
+ <th scope="row">
75
+ <?php _e( 'PHP Safe Mode', 'wp-statistics' ); ?>:
76
+ </th>
77
+
78
+ <td>
79
+ <strong><?php if ( ini_get( 'safe_mode' ) ) {
80
+ _e( 'Yes', 'wp-statistics' );
81
+ } else {
82
+ _e( 'No', 'wp-statistics' );
83
+ } ?></strong>
84
+
85
+ <p class="description"><?php _e( 'Is PHP Safe Mode active. The GeoIP code is not supported in Safe Mode.', 'wp-statistics' ); ?></p>
86
+ </td>
87
+ </tr>
88
+
89
+ <tr valign="top">
90
+ <th scope="row">
91
+ <?php _e( 'PHP IPv6 Enabled', 'wp-statistics' ); ?>:
92
+ </th>
93
+
94
+ <td>
95
+ <strong><?php if ( defined( 'AF_INET6' ) ) {
96
+ _e( 'Yes', 'wp-statistics' );
97
+ } else {
98
+ _e( 'No', 'wp-statistics' );
99
+ } ?></strong>
100
+
101
+ <p class="description"><?php _e( 'Is PHP compiled with IPv6 support. You may see warning messages in your PHP log if it is not and you receive HTTP headers with IPv6 addresses in them.', 'wp-statistics' ); ?></p>
102
+ </td>
103
+ </tr>
104
+
105
+ <tr valign="top">
106
+ <th scope="row">
107
+ <?php _e( 'jQuery Version', 'wp-statistics' ); ?>:
108
+ </th>
109
+
110
+ <td>
111
+ <strong>
112
+ <script type="text/javascript">document.write(jQuery().jquery);</script>
113
+ </strong>
114
+
115
+ <p class="description"><?php _e( 'The jQuery version you are running.', 'wp-statistics' ); ?></p>
116
+ </td>
117
+ </tr>
118
+
119
+ <tr valign="top">
120
+ <th scope="row">
121
+ <?php _e( 'cURL Version', 'wp-statistics' ); ?>:
122
+ </th>
123
+
124
+ <td>
125
+ <strong><?php if ( function_exists( 'curl_version' ) ) {
126
+ $curl_ver = curl_version();
127
+ echo $curl_ver['version'];
128
+ } else {
129
+ _e( 'cURL not installed', 'wp-statistics' );
130
+ } ?></strong>
131
+
132
+ <p class="description"><?php _e(
133
+ 'The PHP cURL Extension version you are running. cURL is required for the GeoIP code, if it is not installed GeoIP will be disabled.',
134
+ 'wp-statistics'
135
+ ); ?></p>
136
+ </td>
137
+ </tr>
138
+
139
+ <tr valign="top">
140
+ <th scope="row">
141
+ <?php _e( 'Zlib gzopen()', 'wp-statistics' ); ?>:
142
+ </th>
143
+
144
+ <td>
145
+ <strong><?php if ( function_exists( 'gzopen' ) ) {
146
+ _e( 'Installed', 'wp-statistics' );
147
+ } else {
148
+ _e( 'Not installed', 'wp-statistics' );
149
+ } ?></strong>
150
+
151
+ <p class="description"><?php _e( 'If the gzopen() function is installed. The gzopen() function is required for the GeoIP database to be downloaded successfully.', 'wp-statistics' ); ?></p>
152
+ </td>
153
+ </tr>
154
+
155
+ <tr valign="top">
156
+ <th scope="row">
157
+ <?php _e( 'GMP PHP extension', 'wp-statistics' ); ?>:
158
+ </th>
159
+
160
+ <td>
161
+ <strong><?php if ( extension_loaded( 'gmp' ) ) {
162
+ _e( 'Installed', 'wp-statistics' );
163
+ } else {
164
+ _e( 'Not installed', 'wp-statistics' );
165
+ } ?></strong>
166
+
167
+ <p class="description"><?php _e( 'If the GMP Math PHP extension is loaded, either GMP or BCMath is required for the GeoIP database to be read successfully.', 'wp-statistics' ); ?></p>
168
+ </td>
169
+ </tr>
170
+
171
+ <tr valign="top">
172
+ <th scope="row">
173
+ <?php _e( 'BCMath PHP extension', 'wp-statistics' ); ?>:
174
+ </th>
175
+
176
+ <td>
177
+ <strong><?php if ( extension_loaded( 'bcmath' ) ) {
178
+ _e( 'Installed', 'wp-statistics' );
179
+ } else {
180
+ _e( 'Not installed', 'wp-statistics' );
181
+ } ?></strong>
182
+
183
+ <p class="description"><?php _e( 'If the BCMath PHP extension is loaded, either GMP or BCMath is required for the GeoIP database to be read successfully.', 'wp-statistics' ); ?></p>
184
+ </td>
185
+ </tr>
186
+
187
+ <tr valign="top">
188
+ <th scope="row" colspan="2"><h3><?php _e( 'File Info', 'wp-statistics' ); ?></h3></th>
189
+ </tr>
190
+
191
+ <tr valign="top">
192
+ <th scope="row">
193
+ <?php _e( 'GeoIP Database', 'wp-statistics' ); ?>:
194
+ </th>
195
+
196
+ <td>
197
+ <strong><?php $upload_dir = wp_upload_dir();
198
+ $GeoIP_filename = $upload_dir['basedir'] . '/wp-statistics/GeoLite2-Country.mmdb';
199
+ $GeoIP_filedate = @filemtime( $GeoIP_filename );
200
+
201
+ if ( $GeoIP_filedate === false ) {
202
+ _e( 'Database file does not exist.', 'wp-statistics' );
203
+ } else {
204
+ echo size_format( @filesize( $GeoIP_filename ), 2 ) . __( ', created on ', 'wp-statistics' ) . date_i18n( get_option( 'date_format' ) . ' @ ' . get_option( 'time_format' ), $GeoIP_filedate );
205
+ } ?></strong>
206
+
207
+ <p class="description"><?php _e( 'The file size and date of the GeoIP database.', 'wp-statistics' ); ?></p>
208
+ </td>
209
+ </tr>
210
+
211
+ <tr valign="top">
212
+ <th scope="row" colspan="2"><h3><?php _e( 'Client Info', 'wp-statistics' ); ?></h3></th>
213
+ </tr>
214
+
215
+ <tr valign="top">
216
+ <th scope="row">
217
+ <?php _e( 'Client IP', 'wp-statistics' ); ?>:
218
+ </th>
219
+
220
+ <td>
221
+ <strong><?php echo $WP_Statistics->get_IP(); ?></strong>
222
+ <p class="description"><?php _e( 'The client IP address.', 'wp-statistics' ); ?></p>
223
+ </td>
224
+ </tr>
225
+
226
+ <tr valign="top">
227
+ <th scope="row">
228
+ <?php _e( 'User Agent', 'wp-statistics' ); ?>:
229
+ </th>
230
+
231
+ <td>
232
+ <strong><?php echo htmlentities( $_SERVER['HTTP_USER_AGENT'], ENT_QUOTES ); ?></strong>
233
+ <p class="description"><?php _e( 'The client user agent string.', 'wp-statistics' ); ?></p>
234
+ </td>
235
+ </tr>
236
+
237
+ <tr valign="top">
238
+ <th scope="row">
239
+ <?php _e( 'Browser', 'wp-statistics' ); ?>:
240
+ </th>
241
+
242
+ <td>
243
+ <strong><?php $agent = $WP_Statistics->get_UserAgent();
244
+ echo $agent['browser'];
245
+ ?></strong>
246
+
247
+ <p class="description"><?php _e( 'The detected client browser.', 'wp-statistics' ); ?></p>
248
+ </td>
249
+ </tr>
250
+
251
+ <tr valign="top">
252
+ <th scope="row">
253
+ <?php _e( 'Version', 'wp-statistics' ); ?>:
254
+ </th>
255
+
256
+ <td>
257
+ <strong><?php echo $agent['version']; ?></strong>
258
+ <p class="description"><?php _e( 'The detected client browser version.', 'wp-statistics' ); ?></p>
259
+ </td>
260
+ </tr>
261
+
262
+ <tr valign="top">
263
+ <th scope="row">
264
+ <?php _e( 'Platform', 'wp-statistics' ); ?>:
265
+ </th>
266
+
267
+ <td>
268
+ <strong><?php echo $agent['platform']; ?></strong>
269
+ <p class="description"><?php _e( 'The detected client platform.', 'wp-statistics' ); ?></p>
270
+ </td>
271
+ </tr>
272
+
273
+ <tr valign="top">
274
+ <th scope="row" colspan="2"><h3><?php _e( 'Server Info', 'wp-statistics' ); ?></h3></th>
275
+ </tr>
276
+
277
+ <?php
278
+ $list = array( 'SERVER_SOFTWARE', 'HTTP_HOST', 'REMOTE_ADDR', 'HTTP_CLIENT_IP', 'HTTP_X_FORWARDED_FOR', 'HTTP_X_FORWARDED', 'HTTP_FORWARDED_FOR', 'HTTP_FORWARDED', 'HTTP_X_REAL_IP', );
279
+ foreach ( $list as $server ) {
280
+ if ( isset( $_SERVER[ $server ] ) ) {
281
+ echo '<tr valign="top">
282
+ <th scope="row">
283
+ ' . $server . '
284
+ </th>
285
+ <td>
286
+ <strong>' . $_SERVER[ $server ] . '</strong>
287
+ </td>
288
+ </tr>';
289
+ }
290
+ }
291
+ ?>
292
+ </tbody>
293
+ </table>
294
  </div>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://wp-statistics.com/donate/
4
  Tags: analytics, wordpress analytics, stats, statistics, visit, visitors, hits, chart, browser, today, yesterday, week, month, year, total, post, page, sidebar, google, live visit, search word, agent, google analytics, webmasters, google webmasters, geoip, location
5
  Requires at least: 3.0
6
  Tested up to: 5.1
7
- Stable tag: 12.6.1
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -122,6 +122,9 @@ http://yourwebsite.com/wp-json/wpstatistics/v1
122
  To register, go to the Permalink page and update the permalink with press Save Changes.
123
 
124
  == Changelog ==
 
 
 
125
  = 12.6.1 =
126
  - Added Whip Package for getting visitor's IP address.
127
  - Fixed get the country code when the Hash or Anonymize IP Addresses is enabled.
4
  Tags: analytics, wordpress analytics, stats, statistics, visit, visitors, hits, chart, browser, today, yesterday, week, month, year, total, post, page, sidebar, google, live visit, search word, agent, google analytics, webmasters, google webmasters, geoip, location
5
  Requires at least: 3.0
6
  Tested up to: 5.1
7
+ Stable tag: 12.6.2
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
122
  To register, go to the Permalink page and update the permalink with press Save Changes.
123
 
124
  == Changelog ==
125
+ = 12.6.2 =
126
+ - Fixed issue to get IP in some servers that stored 127.0.0.1
127
+
128
  = 12.6.1 =
129
  - Added Whip Package for getting visitor's IP address.
130
  - Fixed get the country code when the Hash or Anonymize IP Addresses is enabled.
wp-statistics.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WP Statistics
4
  * Plugin URI: https://wp-statistics.com/
5
  * Description: Complete WordPress Analytics and Statistics for your site!
6
- * Version: 12.6.1
7
  * Author: VeronaLabs
8
  * Author URI: http://veronalabs.com/
9
  * Text Domain: wp-statistics
3
  * Plugin Name: WP Statistics
4
  * Plugin URI: https://wp-statistics.com/
5
  * Description: Complete WordPress Analytics and Statistics for your site!
6
+ * Version: 12.6.2
7
  * Author: VeronaLabs
8
  * Author URI: http://veronalabs.com/
9
  * Text Domain: wp-statistics