From daac7d3ee4e5d99ff9e1644410229bb3abe1678a Mon Sep 17 00:00:00 2001 From: Herb Miller Date: Fri, 15 Sep 2023 15:59:14 +0100 Subject: [PATCH] PHP 8.2: Pass empty string rather than null #220 --- libs/bobbfunc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/bobbfunc.php b/libs/bobbfunc.php index db37300..0708e53 100644 --- a/libs/bobbfunc.php +++ b/libs/bobbfunc.php @@ -872,7 +872,7 @@ function bw_funcname( $prefix, $key, $value=NULL ) { * @uses plugin_dir_url() to find the plugin base directory then appends the plugin folder and file name */ function oik_url( $file=null, $plugin='oik' ) { - $url = plugin_dir_url( null ); + $url = plugin_dir_url( '' ); $url .= "$plugin/$file" ; return( $url ); }