Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue where null is passed to str_replace() #20

Merged
merged 1 commit into from
Feb 22, 2024
Merged

Conversation

wpscholar
Copy link
Member

Ensure that the URL has a trailing slash. This ensures that the PHP_URL_PATH is always set, which prevents the str_replace() call from outputting "Deprecated: str_replace(): Passing null to parameter #1 ($search) of type array|string is deprecated"

…RL_PATH is always set, which prevents the str_replace() call from outputting "Deprecated: str_replace(): Passing null to parameter #1 ($search) of type array|string is deprecated"
@wpscholar wpscholar added the bug Something isn't working label Feb 22, 2024
@wpscholar wpscholar self-assigned this Feb 22, 2024
@wpscholar wpscholar merged commit c5da2a9 into main Feb 22, 2024
5 of 6 checks passed
@wpscholar wpscholar deleted the fix/str-replace branch February 22, 2024 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants