mirror of
https://github.com/mainwp/mainwp-child.git
synced 2025-08-30 02:32:07 +08:00
Fixed: CodeFactor issues
This commit is contained in:
parent
b114582b27
commit
429d47f18b
1 changed files with 1 additions and 5 deletions
|
@ -330,8 +330,6 @@ class MainWP_Child_Server_Information_Base {
|
|||
* @return string $wp_version Current WordPress version.
|
||||
*/
|
||||
protected static function get_wordpress_version() {
|
||||
|
||||
/** @global string $wp_version WordPress Version. */
|
||||
global $wp_version;
|
||||
|
||||
return $wp_version;
|
||||
|
@ -566,9 +564,7 @@ class MainWP_Child_Server_Information_Base {
|
|||
}
|
||||
|
||||
/**
|
||||
* Get Server IP.
|
||||
*
|
||||
* @return string Return Server IP.
|
||||
* Get server IP.
|
||||
*/
|
||||
protected static function get_server_ip() {
|
||||
echo esc_html( $_SERVER['SERVER_ADDR'] );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue