From 4913d3bbf7552068f28ba7def77adb8f85c9dbe5 Mon Sep 17 00:00:00 2001 From: Hardeep Asrani Date: Thu, 11 Jan 2024 08:41:17 +0530 Subject: [PATCH] chore: fix constant case --- functions.php | 5 +++-- patterns/feature-columns.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/functions.php b/functions.php index a30250d..4c654fd 100644 --- a/functions.php +++ b/functions.php @@ -128,8 +128,9 @@ function quickwp_block_styles() { add_action( 'init', 'quickwp_block_styles' ); - -define( 'QUICKWP_URL', trailingslashit( get_template_directory_uri() ) ); +if ( ! defined( 'QUICKWP_URL' ) ) { + define( 'QUICKWP_URL', trailingslashit( get_template_directory_uri() ) ); +} /** * Enqueue block stylesheets. diff --git a/patterns/feature-columns.php b/patterns/feature-columns.php index 9cb384e..7a24454 100644 --- a/patterns/feature-columns.php +++ b/patterns/feature-columns.php @@ -8,7 +8,7 @@ $quickwp_strings = apply_filters( 'quickwp_strings', array() ); $images = array( - QuickWP_URL . 'assets/img/qwp-img-02.webp', + QUICKWP_URL . 'assets/img/qwp-img-02.webp', ); ?>