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:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user