Skip to content

Commit

Permalink
Fix null to parameter WordPress#1 ($string) of type string is depreca…
Browse files Browse the repository at this point in the history
…ted in wp-includes\formatting.php on line 2789
  • Loading branch information
creedally-dev committed Sep 28, 2022
1 parent 63d2516 commit 2316e83
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/wp-includes/l10n.php
Original file line number Diff line number Diff line change
Expand Up @@ -1064,7 +1064,9 @@ function load_script_textdomain( $handle, $domain = 'default', $path = null ) {
if ( ! isset( $wp_scripts->registered[ $handle ] ) ) {
return false;
}

if(!is_null($path)) {
//removing slashes from null doesn't make sense
}
$path = untrailingslashit( $path );
$locale = determine_locale();

Expand Down

0 comments on commit 2316e83

Please sign in to comment.