From 57d25f90981bfa11a423a51b67ff82db192861e9 Mon Sep 17 00:00:00 2001 From: Frank419 Date: Tue, 27 Aug 2024 13:02:56 +0800 Subject: [PATCH] Use esc_url instead of esc_attr for URLs. Improves security. --- includes/class-color-palette-control.php | 8 ++++---- includes/class-multi-image-control.php | 2 +- singular.php | 2 +- templates/loop.php | 2 +- templates/metadata.php | 4 ++-- templates/publisher.php | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/includes/class-color-palette-control.php b/includes/class-color-palette-control.php index 8958c59..6c60b78 100644 --- a/includes/class-color-palette-control.php +++ b/includes/class-color-palette-control.php @@ -33,10 +33,10 @@ class MinimalistFlex_Color_Palette_Custom_Control extends WP_Customize_Control
diff --git a/singular.php b/singular.php index 8fe6604..66dfa5c 100644 --- a/singular.php +++ b/singular.php @@ -30,7 +30,7 @@ $default_image_location = get_theme_mod( 'minimalistflex_default_featured_images ?>
- +
diff --git a/templates/loop.php b/templates/loop.php index 91fdcff..4b6bedd 100644 --- a/templates/loop.php +++ b/templates/loop.php @@ -68,7 +68,7 @@ $default_image_location = get_theme_mod( 'minimalistflex_default_featured_images
- + diff --git a/templates/metadata.php b/templates/metadata.php index 1b921ff..b676d2a 100644 --- a/templates/metadata.php +++ b/templates/metadata.php @@ -13,7 +13,7 @@ if ( !defined( 'WPINC' ) ) {
- + name; ?>
@@ -28,7 +28,7 @@ if ( !defined( 'WPINC' ) ) {
- + name; ?>
diff --git a/templates/publisher.php b/templates/publisher.php index 41c9048..de28ef4 100644 --- a/templates/publisher.php +++ b/templates/publisher.php @@ -6,7 +6,7 @@ if ( !defined( 'WPINC' ) ) {
- +