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

When creating a new project, check if the project slug exists and is not null #1704

Merged
merged 2 commits into from
Sep 27, 2023

Conversation

amieiro
Copy link
Member

@amieiro amieiro commented Sep 26, 2023

Problem

Using PHP8.2, I get a deprecation warning when I create a new project with an empty slug.

PHP Deprecated: urldecode(): Passing null to parameter #1 ($string) of type string is deprecated in /wordpress/glotpress/wp-content/plugins/GlotPress/gp-templates/project-form.php on line 8

image

Solution

We need to check if the project slug exists and is not null.

@amieiro amieiro requested review from akirk and trymebytes September 26, 2023 12:19
@amieiro amieiro merged commit 631dd49 into GlotPress:develop Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants