lesterchan / wp-serverinfo

Display your host's PHP, MYSQL & memcached (if installed) information on your WordPress dashboard.

Home Page:https://wordpress.org/plugins/wp-serverinfo/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Depreciated Code for PHP7

opened this issue · comments

Hi,

At line 381 - 391 @ wp-serverinfo.php do I see a problem for PHP7. This is a depreciated code since PHP5.4. Remove also line 131 and 132 from the file.

### Function: Get PHP Safe Mode
if(!function_exists('get_php_safe_mode')) {
function get_php_safe_mode() {
if(ini_get('safe_mode')) {
$safe_mode = __('On', 'wp-serverinfo');
} else {
$safe_mode = __('Off', 'wp-serverinfo');
}
return $safe_mode;
}
}