Poprawki bezpieczeństwa formularza i panelu ustawień

- wp_unslash dla pól formularza i opcji (koniec z \' w mailach)
- panel: wymagany nonce i manage_options, sanityzacja, esc_attr
- reCAPTCHA: oczekiwana akcja i próg wyniku 0.5
- From z domeny strony, adres nadawcy tylko w Reply-To
- honeypot bez die(), walidacja JS nie jest omijana
- komunikat o nieudanej wysyłce, zachowanie wpisanych pól
- nowy wygląd formularza (klasy ic-*) i szablon maila

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
2026-11-15 23:44:46 +01:00
co-authored by Claude Fable 5.2
parent f6b707a6f2
commit 0f7eddd6a0
7 changed files with 506 additions and 268 deletions
+20 -14
View File
@@ -11,19 +11,25 @@ namespace inContact;
* @version 0.2
*/
class Enqueue {
class Enqueue
{
use Singleton;
use Singleton;
function __construct() {
/*function __construct() {
add_action('wp_enqueue_scripts',[ $this, 'enqueueScripts']);
}
public function enqueueScripts() {
global $pluginDirUrl, $pluginPath;
wp_register_style('ContactCss', $pluginDirUrl.'css/inContact.css', [], filemtime( $pluginPath . 'css/inContact.css'), 'all');
wp_enqueue_style('ContactCss');
}
}
}*/
public function enqueueScripts()
{
global $pluginDirUrl, $pluginPath;
wp_register_style(
"ContactCss",
$pluginDirUrl . "css/inContact.css",
[],
filemtime($pluginPath . "css/inContact.css"),
"all",
);
wp_enqueue_style("ContactCss");
}
}