Skip to content

Commit

Permalink
PHP 8.2: Pass empty string rather than null #220
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbingwide committed Sep 15, 2023
1 parent 743d5d5 commit daac7d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/bobbfunc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
Expand Down

0 comments on commit daac7d3

Please sign in to comment.