Version Description
- Solved: PHP 7.1 Notice: A non well formed numeric value encountered for $result
Download this release
Release Info
Developer | apasionados |
Plugin | Server IP & Memory Usage Display |
Version | 2.0.2 |
Comparing to | |
See all releases |
Code changes from version 1.4.0 to 2.0.2
- readme.txt +12 -3
- server-ip-memory-usage.php +3 -1
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Author URI: http://apasionados.es/
|
|
5 |
Tags: memory, memory-limit, ip, ips, admin, adress, php, server, info
|
6 |
Requires at least: 3.0.1
|
7 |
Tested up to: 4.7
|
8 |
-
Stable tag:
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -87,6 +87,15 @@ Of course we do. That's why we created it. ;-)
|
|
87 |
|
88 |
== Changelog ==
|
89 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
= 1.4.0 =
|
91 |
* Added check for PHP version of the server. Plugins works with PHP 5.3 or greater. If PHP version is less than 5.3 the plugin is not activated.
|
92 |
|
@@ -117,8 +126,8 @@ Of course we do. That's why we created it. ;-)
|
|
117 |
|
118 |
== Upgrade Notice ==
|
119 |
|
120 |
-
=
|
121 |
-
*
|
122 |
|
123 |
== Contact ==
|
124 |
|
5 |
Tags: memory, memory-limit, ip, ips, admin, adress, php, server, info
|
6 |
Requires at least: 3.0.1
|
7 |
Tested up to: 4.7
|
8 |
+
Stable tag: 2.0.2
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
87 |
|
88 |
== Changelog ==
|
89 |
|
90 |
+
= 2.0.2 =
|
91 |
+
* Solved: PHP 7.1 Notice: A non well formed numeric value encountered for $result
|
92 |
+
|
93 |
+
= 2.0.1 =
|
94 |
+
* Changed memory information display to use memory_get_peak_usage().
|
95 |
+
|
96 |
+
= 2.0.0 =
|
97 |
+
* Added additional information about memory_get_peak_usage() - support ticket by @diablodale
|
98 |
+
|
99 |
= 1.4.0 =
|
100 |
* Added check for PHP version of the server. Plugins works with PHP 5.3 or greater. If PHP version is less than 5.3 the plugin is not activated.
|
101 |
|
126 |
|
127 |
== Upgrade Notice ==
|
128 |
|
129 |
+
= 2.0.2 =
|
130 |
+
* Solved: PHP 7.1 Notice: A non well formed numeric value encountered for $result
|
131 |
|
132 |
== Contact ==
|
133 |
|
server-ip-memory-usage.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Server IP & Memory Usage Display
|
4 |
Plugin URI: http://apasionados.es/#utm_source=wpadmin&utm_medium=plugin&utm_campaign=server-ip-memory-usage-plugin
|
5 |
Description: Show the memory limit, current memory usage and IP address in the admin footer.
|
6 |
-
Version:
|
7 |
Author: Apasionados, Apasionados del Marketing
|
8 |
Author URI: http://apasionados.es
|
9 |
Text Domain: server-ip-memory-usage
|
@@ -61,6 +61,8 @@ if ( is_admin() ) {
|
|
61 |
function format_wp_limit( $size ) {
|
62 |
$value = substr( $size, -1 );
|
63 |
$return = substr( $size, 0, -1 );
|
|
|
|
|
64 |
|
65 |
switch ( strtoupper( $value ) ) {
|
66 |
case 'P' :
|
3 |
Plugin Name: Server IP & Memory Usage Display
|
4 |
Plugin URI: http://apasionados.es/#utm_source=wpadmin&utm_medium=plugin&utm_campaign=server-ip-memory-usage-plugin
|
5 |
Description: Show the memory limit, current memory usage and IP address in the admin footer.
|
6 |
+
Version: 2.0.2
|
7 |
Author: Apasionados, Apasionados del Marketing
|
8 |
Author URI: http://apasionados.es
|
9 |
Text Domain: server-ip-memory-usage
|
61 |
function format_wp_limit( $size ) {
|
62 |
$value = substr( $size, -1 );
|
63 |
$return = substr( $size, 0, -1 );
|
64 |
+
|
65 |
+
$return = (int)$return; // Solved: PHP 7.1 Notice: A non well formed numeric value encountered
|
66 |
|
67 |
switch ( strtoupper( $value ) ) {
|
68 |
case 'P' :
|