| @@ -14,9 +14,9 @@ | ||
| 14 | 14 | * @wordpress-plugin |
| 15 | 15 | * Plugin Name: Search Atlas SEO - OTTO AI SEO Automation for WordPress |
| 16 | 16 | * Plugin URI: https://searchatlas.com/ |
| 17 | 17 | * Description: Search Atlas SEO is an intuitive WordPress Plugin that transforms the most complicated, most labor-intensive SEO tasks into streamlined, straightforward processes. With a few clicks, the meta-bulk update feature automates the re-optimization of meta tags using AI to increase clicks. Stay up-to-date with the freshest Google Search data for your entire site or targeted URLs within the Meta Sync plug-in page. |
| 18 | - * Version: 2.7.2 | |
| 18 | + * Version: 2.7.1 | |
| 19 | 19 | * Requires PHP: 8.1 |
| 20 | 20 | * Author: Search Atlas |
| 21 | 21 | * Author URI: https://searchatlas.com |
| 22 | 22 | * License: GPL v3 |
| @@ -57,9 +57,9 @@ | ||
| 57 | 57 | * Currently plugin version. |
| 58 | 58 | * Start at version 1.0.0 and use SemVer - https://semver.org |
| 59 | 59 | * Rename this for your plugin and update it as you release new versions. |
| 60 | 60 | */ |
| 61 | -$metasync_version = '2.7.2'; | |
| 61 | +$metasync_version = '2.7.1'; | |
| 62 | 62 | define('METASYNC_VERSION', preg_match('/^\d+\.\d+/', $metasync_version) ? $metasync_version : '9.9.9'); |
| 63 | 63 | /** |
| 64 | 64 | * Define the current required php version |
| 65 | 65 | * This will be used to validate whether the user can install the plugin or not |
| @@ -95,18 +95,8 @@ | ||
| 95 | 95 | define('METASYNC_GA4_MEASUREMENT_ID', 'G-SBLWW1EMTJ'); |
| 96 | 96 | define('METASYNC_GA4_API_SECRET', 'nMGs22mxQ3qVUy-aInqfZA'); |
| 97 | 97 | |
| 98 | 98 | /** |
| 99 | - * PostHog product analytics configuration. | |
| 100 | - * The write key is a public project key embedded by design (same precedent | |
| 101 | - * as the GA4 secret above); set METASYNC_POSTHOG_API_KEY in the environment | |
| 102 | - * to override it - including to an empty string, which disables PostHog. | |
| 103 | - */ | |
| 104 | -define('METASYNC_POSTHOG_HOST', 'https://posthog.internal.searchatlas.com'); | |
| 105 | -$metasync_posthog_key = getenv('METASYNC_POSTHOG_API_KEY'); | |
| 106 | -define('METASYNC_POSTHOG_API_KEY', false !== $metasync_posthog_key ? $metasync_posthog_key : 'phc_ntSayCJE7Ad9eBHRG6ygBaY4BJMa8rFjXcXESun9ftkh'); // gitleaks:allow -- public write-only PostHog project key | |
| 107 | - | |
| 108 | -/** | |
| 109 | 99 | * Define whether to show the plugin status in WordPress admin top navigation bar |
| 110 | 100 | * Set to false to hide the status indicator |
| 111 | 101 | */ |
| 112 | 102 | define('METASYNC_SHOW_ADMIN_BAR_STATUS', true); |
| @@ -263,9 +253,9 @@ | ||
| 263 | 253 | #craft the message |
| 264 | 254 | sprintf( |
| 265 | 255 | '%s requires WordPress version %s or later. You are currently using version %s. Please update WordPress to activate this plugin.', |
| 266 | 256 | esc_html($plugin_name), |
| 267 | - esc_html(METASYNC_MIN_WP), | |
| 257 | + METASYNC_MIN_WP, | |
| 268 | 258 | esc_html($wp_version) |
| 269 | 259 | ), |
| 270 | 260 | |
| 271 | 261 | #the plugin title as page title |
| @@ -285,9 +275,9 @@ | ||
| 285 | 275 | #craft the message |
| 286 | 276 | sprintf( |
| 287 | 277 | '%s requires PHP version %s or later. You are currently using version %s. Please update PHP to activate this plugin.', |
| 288 | 278 | esc_html($plugin_name), |
| 289 | - esc_html(METASYNC_MIN_PHP), | |
| 279 | + METASYNC_MIN_PHP, | |
| 290 | 280 | esc_html($php_version) |
| 291 | 281 | ), |
| 292 | 282 | |
| 293 | 283 | #the plugin title as page title |
| @@ -313,12 +303,8 @@ | ||
| 313 | 303 | Metasync_Cache_Purge::purge_all('plugin_activation'); |
| 314 | 304 | |
| 315 | 305 | // Migrate physical sitemap files on activation. |
| 316 | 306 | metasync_migrate_physical_sitemaps(); |
| 317 | - | |
| 318 | - // Consent-gated analytics: the activation event only fires if the user | |
| 319 | - // previously opted in (re-activation) — a brand-new install is OFF. | |
| 320 | - Metasync_PostHog::get_instance()->track('plugin_activated', array()); | |
| 321 | 307 | } |
| 322 | 308 | |
| 323 | 309 | // Log-sync removed - error monitoring now handled by Sentry |
| 324 | 310 | // require_once plugin_dir_path(__FILE__) . 'log-sync/log-sync.php'; |
| @@ -513,13 +499,8 @@ | ||
| 513 | 499 | |
| 514 | 500 | // Run version-specific migrations first |
| 515 | 501 | MetaSync_DBMigration::run_version_migrations($current_version, $plugin_version); |
| 516 | 502 | |
| 517 | - // The developer endpoint-switching panel has been removed. Reset its | |
| 518 | - // persisted staging mode so upgrades cannot keep routing API requests | |
| 519 | - // to staging without a visible warning or a supported recovery path. | |
| 520 | - delete_option('metasync_dev_endpoint_mode'); | |
| 521 | - | |
| 522 | 503 | // Migration for v2.7.0+: Remove AI Agent, switch to plugin auth token, make MCP always-on |
| 523 | 504 | if (version_compare($current_version, '2.7.0', '<')) { |
| 524 | 505 | // Remove old MCP API key option |
| 525 | 506 | delete_option('metasync_mcp_api_key'); |
| @@ -766,17 +747,9 @@ | ||
| 766 | 747 | echo '<script>window.__SA_DYO_INITIALIZED__=true;</script>' . "\n"; |
| 767 | 748 | } |
| 768 | 749 | add_action('wp_head', 'metasync_output_dyo_init_flag', 1); |
| 769 | 750 | |
| 770 | -// Shared analytics helper is loaded in all request contexts so server-side feature | |
| 771 | -// events can use the same consent gate as admin analytics. | |
| 772 | -require_once plugin_dir_path( __FILE__ ) . 'includes/class-metasync-posthog.php'; | |
| 773 | -require_once plugin_dir_path( __FILE__ ) . 'includes/class-metasync-analytics-consent-notice.php'; | |
| 774 | - | |
| 775 | -/** | |
| 776 | - * Runtime feature initialisers (GA4, API backoff, review notice, JWT accessor, | |
| 777 | - * debug mode) extracted to keep this entry file lean. | |
| 778 | - */ | |
| 751 | +// Runtime feature initialisers (GA4, API backoff, review notice, JWT accessor, debug mode) extracted to keep this entry file lean. | |
| 779 | 752 | require_once plugin_dir_path( __FILE__ ) . 'includes/metasync-runtime-init.php'; |
| 780 | 753 | |
| 781 | 754 | /** |
| 782 | 755 | * Append a "Website Studio" post state to LPS-synced / MetaSync custom pages in |