| @@ -105,8 +105,9 @@ | ||
| 105 | 105 | |
| 106 | 106 | // The SEO Overview column edits only the PRIMARY focus keyword. Take the |
| 107 | 107 | // new primary from the input (first value if a list is pasted) and keep |
| 108 | 108 | // the existing secondary keywords so inline editing never drops them. |
| 109 | + // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- normalize() sanitize_text_field()s every value it keeps. | |
| 109 | 110 | $raw_input = isset($_POST['focus_keyword']) ? wp_unslash($_POST['focus_keyword']) : ''; |
| 110 | 111 | $new_primary = \ThinkRank\SEO\Focus_Keywords::normalize($raw_input, 1); |
| 111 | 112 | |
| 112 | 113 | $existing = \ThinkRank\SEO\Focus_Keywords::get($post_id); |
| @@ -184,7 +185,5 @@ | ||
| 184 | 185 | clean_post_cache( $post_id ); |
| 185 | 186 | |
| 186 | 187 | return ( $updated !== false ); |
| 187 | 188 | } |
| 188 | - | |
| 189 | 189 | } |
| 190 | - | |