From 1b98b515c6a3466c850fa4543c061cc25cc65b48 Mon Sep 17 00:00:00 2001 From: Andy Fragen Date: Thu, 26 Jun 2025 10:38:25 -0700 Subject: [PATCH] Use const in icons/namespace.php (#134) Signed-off-by: Andy Fragen --- inc/icons/namespace.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/icons/namespace.php b/inc/icons/namespace.php index f132ce2..66f9c40 100644 --- a/inc/icons/namespace.php +++ b/inc/icons/namespace.php @@ -7,7 +7,7 @@ namespace FAIR\Icons; -use FAIR; +use const FAIR\PLUGIN_FILE; /** * Bootstrap @@ -25,7 +25,7 @@ function bootstrap() { */ function set_default_icon( $transient ) { foreach ( $transient->response as $updates ) { - $url = plugin_dir_url( FAIR\PLUGIN_FILE ) . 'inc/icons/svg.php'; + $url = plugin_dir_url( PLUGIN_FILE ) . 'inc/icons/svg.php'; $url = add_query_arg( 'color', set_random_color(), $url ); $updates->icons['default'] = $url; }