From 522b733d6e80199dfd28fa562a095ce5d44732d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alba=20Rinc=C3=B3n?= Date: Tue, 13 Jun 2023 16:29:49 +0200 Subject: [PATCH 1/2] Add a default attribute to the pattern if exists --- patterns/filters.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/patterns/filters.php b/patterns/filters.php index 686e8263f83..90be698800d 100644 --- a/patterns/filters.php +++ b/patterns/filters.php @@ -42,8 +42,17 @@

- -
+attribute_id; +} +?> + + +
From 112dfd586a95b9f76624d52cda7b922f07439e6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alba=20Rinc=C3=B3n?= Date: Wed, 14 Jun 2023 14:46:19 +0200 Subject: [PATCH 2/2] Use esc_attr instead of esc_html --- patterns/filters.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patterns/filters.php b/patterns/filters.php index 90be698800d..5d70a96ac02 100644 --- a/patterns/filters.php +++ b/patterns/filters.php @@ -51,8 +51,8 @@ } ?> - -
+ +