| @@ -153,9 +153,9 @@ | ||
| 153 | 153 | } |
| 154 | 154 | |
| 155 | 155 | // Check if on MetaSync settings page or any page with metasync in the ID |
| 156 | 156 | return strpos($screen->id, 'metasync') !== false || |
| 157 | - (isset($_GET['page']) && strpos($_GET['page'], 'metasync') !== false); | |
| 157 | + (isset($_GET['page']) && strpos($_GET['page'], 'metasync') !== false); // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- read-only page check to scope notice scripts | |
| 158 | 158 | } |
| 159 | 159 | |
| 160 | 160 | /** |
| 161 | 161 | * Enqueue admin scripts for notice handling |
| @@ -217,15 +217,8 @@ | ||
| 217 | 217 | |
| 218 | 218 | if (empty($endpoint_hash)) { |
| 219 | 219 | wp_send_json_error(['message' => 'Invalid endpoint hash']); |
| 220 | 220 | } |
| 221 | - | |
| 222 | - // Log the dismissal (notice will reappear on page refresh if still active) | |
| 223 | - error_log(sprintf( | |
| 224 | - '[MetaSync API_BACKOFF_NOTICE_DISMISSED] User %d dismissed notice for endpoint: %s', | |
| 225 | - get_current_user_id(), | |
| 226 | - $endpoint_hash | |
| 227 | - )); | |
| 228 | 221 | |
| 229 | 222 | wp_send_json_success(['message' => 'Notice dismissed']); |
| 230 | 223 | } |
| 231 | 224 | |