| @@ -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 | |
| @@ -16,12 +14,8 @@ | ||
| 16 | 14 | * @since 1.0.0 |
| 17 | 15 | */ |
| 18 | 16 | class User extends Base { |
| 19 | 17 | |
| 20 | - public function is_enabled() { | |
| 21 | - return (bool) wp_get_current_user()->ID; | |
| 22 | - } | |
| 23 | - | |
| 24 | 18 | /** |
| 25 | 19 | * Get user reporter title. |
| 26 | 20 | * |
| 27 | 21 | * Retrieve user reporter title. |
| @@ -95,9 +89,9 @@ | ||
| 95 | 89 | * } |
| 96 | 90 | */ |
| 97 | 91 | public function get_locale() { |
| 98 | 92 | return [ |
| 99 | - 'value' => get_bloginfo( 'language' ), | |
| 93 | + 'value' => get_locale(), | |
| 100 | 94 | ]; |
| 101 | 95 | } |
| 102 | 96 | |
| 103 | 97 | /** |
| @@ -115,8 +109,8 @@ | ||
| 115 | 109 | * } |
| 116 | 110 | */ |
| 117 | 111 | public function get_agent() { |
| 118 | 112 | return [ |
| 119 | - 'value' => esc_html( Utils::get_super_global_value( $_SERVER, 'HTTP_USER_AGENT' ) ), | |
| 113 | + 'value' => esc_html( $_SERVER['HTTP_USER_AGENT'] ), | |
| 120 | 114 | ]; |
| 121 | 115 | } |
| 122 | 116 | } |