| @@ -254,14 +254,14 @@ | ||
| 254 | 254 | } |
| 255 | 255 | </style> |
| 256 | 256 | |
| 257 | 257 | <div id="add-redirection-form"> |
| 258 | - <h1><?php echo (isset($_GET['action']) && $_GET['action'] == 'edit') ? 'Edit Redirection' : 'Add Redirection'; ?></h1> | |
| 258 | + <h1><?php echo (isset($_GET['action']) && $_GET['action'] == 'edit') ? 'Edit Redirection' : 'Add Redirection'; // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- read-only heading selection ?></h1> | |
| 259 | 259 | |
| 260 | 260 | <!-- Redirection Tips Section --> |
| 261 | 261 | <div class="redirection-tips-container" style="margin-bottom: 20px;"> |
| 262 | 262 | <button type="button" id="toggle-redirection-tips" class="button button-secondary" style="margin-bottom: 10px;"> |
| 263 | - <span class="dashicons dashicons-info" style="margin-top: 3px;"></span> Show Redirection Tips & Examples | |
| 263 | + <span class="dashicons dashicons-info"></span> Show Redirection Tips & Examples | |
| 264 | 264 | </button> |
| 265 | 265 | |
| 266 | 266 | <div id="redirection-tips-content" style="display: none; background: var(--dashboard-card-bg); border: 1px solid var(--dashboard-border); border-radius: 8px; padding: 20px; margin-top: 10px;"> |
| 267 | 267 | <h3 style="margin-top: 0; color: var(--dashboard-text-primary);">Redirection Pattern Guide</h3> |
| @@ -521,9 +521,9 @@ | ||
| 521 | 521 | $http_code = '301'; |
| 522 | 522 | $status = 'active'; |
| 523 | 523 | $uri = ''; |
| 524 | 524 | |
| 525 | - $get_data = metasync_sanitize_input_array($_GET); | |
| 525 | + $get_data = metasync_sanitize_input_array($_GET); // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- read-only edit-form prefill, the save carries its own nonce | |
| 526 | 526 | |
| 527 | 527 | if (isset($get_data['action'])) { |
| 528 | 528 | if (isset($get_data['uri']) && ($get_data['action'] == 'redirect' && !empty($get_data['uri']))) { |
| 529 | 529 | // Decode the URI and sanitize it properly |
| @@ -698,8 +698,8 @@ | ||
| 698 | 698 | |
| 699 | 699 | </div> |
| 700 | 700 | |
| 701 | 701 | <?php |
| 702 | -$get_data = metasync_sanitize_input_array($_GET); | |
| 702 | +$get_data = metasync_sanitize_input_array($_GET); // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- read-only comparison with no effect | |
| 703 | 703 | if (isset($get_data['action']) && ($get_data['action'] == 'edit' || $get_data['action'] == 'redirect' || $get_data['action'] == 'add')) { |
| 704 | 704 | ?> |
| 705 | 705 | <?php } ?> |