PluginProbe
Search Atlas SEO – OTTO AI SEO Automation for WordPress / 2.7.1
Search Atlas SEO – OTTO AI SEO Automation for WordPress v2.7.1
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 | includes/class-metasync-endpoint-manager.php +2 -6 2.6.16 → 2.7.1 View file →
@@ -80,18 +80,14 @@
80 80 */
81 81 public static function set_mode( $mode ) {
82 82 // Validate mode
83 83 if ( ! in_array( $mode, array( self::MODE_PRODUCTION, self::MODE_STAGING ), true ) ) {
84 - error_log( "MetaSync Endpoint Manager: Invalid mode '{$mode}' provided" );
84 + error_log( "MetaSync Endpoint Manager: Invalid mode '{$mode}' provided" ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log -- genuine failure path, bounded, no secrets
85 85 return false;
86 86 }
87 87
88 88 $result = update_option( self::MODE_OPTION, $mode );
89 89
90 - if ( $result ) {
91 - error_log( "MetaSync Endpoint Manager: Endpoints switched to {$mode} mode by user " . get_current_user_id() );
92 - }
93 -
94 90 return $result;
95 91 }
96 92
97 93 /**
@@ -103,9 +99,9 @@
103 99 public static function get_endpoint( $endpoint_key ) {
104 100 $mode = self::get_mode();
105 101
106 102 if ( ! isset( self::$endpoints[ $mode ][ $endpoint_key ] ) ) {
107 - error_log( "MetaSync Endpoint Manager: Unknown endpoint key '{$endpoint_key}'" );
103 + error_log( "MetaSync Endpoint Manager: Unknown endpoint key '{$endpoint_key}'" ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log -- genuine failure path, bounded, no secrets
108 104
109 105 // Fallback to production if key exists there
110 106 if ( isset( self::$endpoints[ self::MODE_PRODUCTION ][ $endpoint_key ] ) ) {
111 107 return self::$endpoints[ self::MODE_PRODUCTION ][ $endpoint_key ];