Server IP & Memory Usage Display - Version 2.0.3

Version Description

  • Solved error with memory_get_peak_usage().
Download this release

Release Info

Developer apasionados
Plugin Icon 128x128 Server IP & Memory Usage Display
Version 2.0.3
Comparing to
See all releases

Code changes from version 2.0.1 to 2.0.3

lang/server-ip-memory-usage-es_ES.po CHANGED
@@ -1,68 +1,68 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: ip-address-memory-usage\n"
4
- "POT-Creation-Date: 2016-12-27 11:04+0100\n"
5
- "PO-Revision-Date: 2016-12-27 11:04+0100\n"
6
- "Last-Translator: Ramon <marketing@apasionados.es>\n"
7
- "Language-Team: Apasionados <info@apasionados.es>\n"
8
- "Language: es_ES\n"
9
- "MIME-Version: 1.0\n"
10
- "Content-Type: text/plain; charset=UTF-8\n"
11
- "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 1.8.11\n"
13
- "X-Poedit-KeywordsList: __;_;gettext;gettext_noop;_e\n"
14
- "X-Poedit-Basepath: .\n"
15
- "X-Poedit-SearchPath-0: .\n"
16
- "X-Poedit-SearchPath-1: ..\n"
17
-
18
- #: ../server-ip-memory-usage.php:26
19
- msgid "Server IP & Memory Usage Display"
20
- msgstr "Mostrar IP del servidor y uso de memoria"
21
-
22
- #: ../server-ip-memory-usage.php:26
23
- msgid ""
24
- "Show the memory limit, current memory usage and IP address in the admin "
25
- "footer."
26
- msgstr ""
27
- "Muestra la memoria disponible, el uso actual de la misma y la dirección IP "
28
- "en el pie de la adminstración de WordPress para los usuarios que son "
29
- "adminstradores."
30
-
31
- #: ../server-ip-memory-usage.php:82
32
- msgid "N/A"
33
- msgstr "N/D"
34
-
35
- #: ../server-ip-memory-usage.php:92
36
- msgid "Memory"
37
- msgstr "Memoria"
38
-
39
- #: ../server-ip-memory-usage.php:92
40
- msgid "of"
41
- msgstr "de"
42
-
43
- #: ../server-ip-memory-usage.php:92
44
- msgid "WP LIMIT"
45
- msgstr "LÍMITE WP"
46
-
47
- #: ../server-ip-memory-usage.php:112
48
- msgid "Could not activate plugin: PHP version error"
49
- msgstr "No se ha podido activar el plugin: Error de versión PHP"
50
-
51
- #: ../server-ip-memory-usage.php:112
52
- msgid "You are using PHP version"
53
- msgstr "Estás usando la versión de PHP"
54
-
55
- #: ../server-ip-memory-usage.php:112
56
- msgid "This plugin has been tested with PHP versions 5.3 and greater."
57
- msgstr "Este plugin ha sido probado versiones de PHP 5.3 y superiores."
58
-
59
- #: ../server-ip-memory-usage.php:112
60
- msgid ""
61
- "WordPress itself <a href=\"https://wordpress.org/about/requirements/\" "
62
- "target=\"_blank\">recommends using PHP version 7 or greater</a>. Please "
63
- "upgrade your PHP version or contact your Server administrator."
64
- msgstr ""
65
- "WordPress <a href=\"https://wordpress.org/about/requirements/\" target="
66
- "\"_blank\">recomienda el uso de PHP versión 7 o superior</a> . Por favor, "
67
- "actualiza tu versión de PHP o ponte en contacto con el administrador del "
68
- "servidor."
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: ip-address-memory-usage\n"
4
+ "POT-Creation-Date: 2016-12-27 11:04+0100\n"
5
+ "PO-Revision-Date: 2016-12-27 11:04+0100\n"
6
+ "Last-Translator: Ramon <marketing@apasionados.es>\n"
7
+ "Language-Team: Apasionados <info@apasionados.es>\n"
8
+ "Language: es_ES\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.8.11\n"
13
+ "X-Poedit-KeywordsList: __;_;gettext;gettext_noop;_e\n"
14
+ "X-Poedit-Basepath: .\n"
15
+ "X-Poedit-SearchPath-0: .\n"
16
+ "X-Poedit-SearchPath-1: ..\n"
17
+
18
+ #: ../server-ip-memory-usage.php:26
19
+ msgid "Server IP & Memory Usage Display"
20
+ msgstr "Mostrar IP del servidor y uso de memoria"
21
+
22
+ #: ../server-ip-memory-usage.php:26
23
+ msgid ""
24
+ "Show the memory limit, current memory usage and IP address in the admin "
25
+ "footer."
26
+ msgstr ""
27
+ "Muestra la memoria disponible, el uso actual de la misma y la dirección IP "
28
+ "en el pie de la adminstración de WordPress para los usuarios que son "
29
+ "adminstradores."
30
+
31
+ #: ../server-ip-memory-usage.php:82
32
+ msgid "N/A"
33
+ msgstr "N/D"
34
+
35
+ #: ../server-ip-memory-usage.php:92
36
+ msgid "Memory"
37
+ msgstr "Memoria"
38
+
39
+ #: ../server-ip-memory-usage.php:92
40
+ msgid "of"
41
+ msgstr "de"
42
+
43
+ #: ../server-ip-memory-usage.php:92
44
+ msgid "WP LIMIT"
45
+ msgstr "LÍMITE WP"
46
+
47
+ #: ../server-ip-memory-usage.php:112
48
+ msgid "Could not activate plugin: PHP version error"
49
+ msgstr "No se ha podido activar el plugin: Error de versión PHP"
50
+
51
+ #: ../server-ip-memory-usage.php:112
52
+ msgid "You are using PHP version"
53
+ msgstr "Estás usando la versión de PHP"
54
+
55
+ #: ../server-ip-memory-usage.php:112
56
+ msgid "This plugin has been tested with PHP versions 5.3 and greater."
57
+ msgstr "Este plugin ha sido probado versiones de PHP 5.3 y superiores."
58
+
59
+ #: ../server-ip-memory-usage.php:112
60
+ msgid ""
61
+ "WordPress itself <a href=\"https://wordpress.org/about/requirements/\" "
62
+ "target=\"_blank\">recommends using PHP version 7 or greater</a>. Please "
63
+ "upgrade your PHP version or contact your Server administrator."
64
+ msgstr ""
65
+ "WordPress <a href=\"https://wordpress.org/about/requirements/\" target="
66
+ "\"_blank\">recomienda el uso de PHP versión 7 o superior</a> . Por favor, "
67
+ "actualiza tu versión de PHP o ponte en contacto con el administrador del "
68
+ "servidor."
readme.txt CHANGED
@@ -4,8 +4,8 @@ Donate link: http://apasionados.es/
4
  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: 2.0.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -87,6 +87,12 @@ Of course we do. That's why we created it. ;-)
87
 
88
  == Changelog ==
89
 
 
 
 
 
 
 
90
  = 2.0.1 =
91
  * Changed memory information display to use memory_get_peak_usage().
92
 
@@ -123,8 +129,8 @@ Of course we do. That's why we created it. ;-)
123
 
124
  == Upgrade Notice ==
125
 
126
- = 2.0.1 =
127
- * Changed memory information display to use memory_get_peak_usage().
128
 
129
  == Contact ==
130
 
4
  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.8
8
+ Stable tag: 2.0.3
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.3 =
91
+ * Solved error with memory_get_peak_usage().
92
+
93
+ = 2.0.2 =
94
+ * Solved: PHP 7.1 Notice: A non well formed numeric value encountered for $result
95
+
96
  = 2.0.1 =
97
  * Changed memory information display to use memory_get_peak_usage().
98
 
129
 
130
  == Upgrade Notice ==
131
 
132
+ = 2.0.3 =
133
+ * Solved error with memory_get_peak_usage().
134
 
135
  == Contact ==
136
 
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: 2.0.1
7
  Author: Apasionados, Apasionados del Marketing
8
  Author URI: http://apasionados.es
9
  Text Domain: server-ip-memory-usage
@@ -47,8 +47,9 @@ if ( is_admin() ) {
47
  }
48
 
49
  function check_memory_usage() {
50
-
51
- $this->memory['usage'] = function_exists('memory_get_usage') ? round(memory_get_usage() / 1024 / 1024, 2) : 0;
 
52
 
53
  if ( !empty($this->memory['usage']) && !empty($this->memory['limit']) ) {
54
  $this->memory['percent'] = round ($this->memory['usage'] / $this->memory['limit'] * 100, 0);
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.3
7
  Author: Apasionados, Apasionados del Marketing
8
  Author URI: http://apasionados.es
9
  Text Domain: server-ip-memory-usage
47
  }
48
 
49
  function check_memory_usage() {
50
+ //$this->memory['usage'] = function_exists('memory_get_usage') ? round(memory_get_usage() / 1024 / 1024, 2) : 0;
51
+ // Changed memory_get_usage to memory_get_peak_usage
52
+ $this->memory['usage'] = function_exists('memory_get_peak_usage') ? round(memory_get_peak_usage(TRUE) / 1024 / 1024, 2) : 0;
53
 
54
  if ( !empty($this->memory['usage']) && !empty($this->memory['limit']) ) {
55
  $this->memory['percent'] = round ($this->memory['usage'] / $this->memory['limit'] * 100, 0);