Skip to content

Commit a683c18

Browse files
authored
Updates
1 parent b959294 commit a683c18

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/wp-compatibility-test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ jobs:
108108
uses: geekyeggo/delete-artifact@v2
109109
with:
110110
name: plugin-check-report
111+
failOnError: false
111112

112113
- name: Create issue on plugin check failure
113114
if: ${{ failure() }}

class-optimizations-ace-mc.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,8 @@ public function settings_page() {
552552
private function display_admin_notices() {
553553
// Note: Form submission is handled automatically by WordPress Settings API.
554554
// The settings_fields() function handles CSRF protection via nonces.
555-
if ( isset( $_GET['settings-updated'] ) && $_GET['settings-updated'] ) {
555+
// phpcs:ignore WordPress.Security.NonceVerification.Recommended, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
556+
if ( isset( $_GET['settings-updated'] ) && wp_unslash( $_GET['settings-updated'] ) ) {
556557
echo '<div class="notice notice-success is-dismissible"><p>' . esc_html__( 'Settings saved successfully!', 'optimizations-ace-mc' ) . '</p></div>';
557558
}
558559
}

0 commit comments

Comments
 (0)