Use const in icons/namespace.php (#134)

Signed-off-by: Andy Fragen <andy@thefragens.com>
This commit is contained in:
Andy Fragen 2025-06-26 10:38:25 -07:00 committed by GitHub
parent 0dc693b68d
commit 1b98b515c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}