Skip to content

Commit

Permalink
Fix TypeError in qtranxf_add_query_arg with URL query mode (#1314)
Browse files Browse the repository at this point in the history
  • Loading branch information
herrvigg committed Apr 11, 2023
1 parent 4332d94 commit 2fca2b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function qtranxf_get_site_info(): array {
* Simplified version of WP's add_query_arg
* @since 3.2.8
*/
function qtranxf_add_query_arg( string &$query, string $key_value ): void {
function qtranxf_add_query_arg( ?string &$query, string $key_value ): void {
if ( empty( $query ) ) {
$query = $key_value;
} else {
Expand Down

0 comments on commit 2fca2b5

Please sign in to comment.