PluginProbe
Search Atlas SEO – OTTO AI SEO Automation for WordPress / 2.7.2
Search Atlas SEO – OTTO AI SEO Automation for WordPress v2.7.2
2.7.1 2.7.2 2.7.0 2.6.26 2.6.25 2.6.24 2.6.23 2.6.22 2.6.21 2.6.20 2.6.19 2.6.18 2.6.17 2.6.16 2.6.15 2.6.14 2.6.13 2.6.12 2.6.11 2.6.10 2.6.9 2.6.8 2.6.7 2.6.6 2.6.5 All 141 releases
← All changes | telemetry/config.php +3 -3 2.6.12 → 2.7.2 View file →
@@ -174,10 +174,10 @@
174 174 if (defined('WP_DEBUG') && WP_DEBUG) {
175 175 return 'development';
176 176 }
177 177
178 - $host = parse_url(home_url(), PHP_URL_HOST);
179 - if (strpos($host, 'staging') !== false || strpos($host, 'dev') !== false) {
178 + $host = wp_parse_url(home_url(), PHP_URL_HOST);
179 + if ($host !== false && $host !== null && (strpos($host, 'staging') !== false || strpos($host, 'dev') !== false)) {
180 180 return 'staging';
181 181 }
182 182
183 183 return 'production';
@@ -218,9 +218,9 @@
218 218 return array(
219 219 'wordpress_version' => get_bloginfo('version'),
220 220 'php_version' => PHP_VERSION,
221 221 'php_os' => PHP_OS_FAMILY,
222 - 'mysql_version' => method_exists($wpdb, 'get_var') ? $wpdb->get_var('SELECT VERSION()') : 'unknown',
222 + 'mysql_version' => method_exists($wpdb, 'get_var') ? $wpdb->get_var('SELECT VERSION()') : 'unknown', // phpcs:ignore WordPress.DB.DirectDatabaseQuery -- diagnostic metadata — SELECT VERSION() has no cached WordPress API
223 223 'server_software' => isset($_SERVER['SERVER_SOFTWARE']) ? $_SERVER['SERVER_SOFTWARE'] : 'unknown',
224 224 'active_plugins' => count(get_option('active_plugins', array())),
225 225 'active_theme' => get_template(),
226 226 'multisite' => is_multisite(),