| @@ -1,9 +1,7 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | namespace Elementor\Modules\System_Info\Reporters; |
| 3 | 3 | |
| 4 | -use Elementor\Utils; | |
| 5 | - | |
| 6 | 4 | if ( ! defined( 'ABSPATH' ) ) { |
| 7 | 5 | exit; // Exit if accessed directly. |
| 8 | 6 | } |
| 9 | 7 | |
| @@ -95,9 +93,9 @@ | ||
| 95 | 93 | * } |
| 96 | 94 | */ |
| 97 | 95 | public function get_locale() { |
| 98 | 96 | return [ |
| 99 | - 'value' => get_bloginfo( 'language' ), | |
| 97 | + 'value' => get_locale(), | |
| 100 | 98 | ]; |
| 101 | 99 | } |
| 102 | 100 | |
| 103 | 101 | /** |
| @@ -115,8 +113,8 @@ | ||
| 115 | 113 | * } |
| 116 | 114 | */ |
| 117 | 115 | public function get_agent() { |
| 118 | 116 | return [ |
| 119 | - 'value' => esc_html( Utils::get_super_global_value( $_SERVER, 'HTTP_USER_AGENT' ) ), | |
| 117 | + 'value' => esc_html( $_SERVER['HTTP_USER_AGENT'] ), | |
| 120 | 118 | ]; |
| 121 | 119 | } |
| 122 | 120 | } |