mirror of
https://ghproxy.net/https://github.com/fairpm/fair-plugin.git
synced 2025-09-03 15:07:44 +08:00
Use const in icons/namespace.php (#134)
Signed-off-by: Andy Fragen <andy@thefragens.com>
This commit is contained in:
parent
0dc693b68d
commit
1b98b515c6
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue