Skip to content

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

Merged
amieiro merged 2 commits into
GlotPress:developfrom
amieiro:new-project-urldecode-warning
Sep 27, 2023
Merged

When creating a new project, check if the project slug exists and is not null#1704
amieiro merged 2 commits into
GlotPress:developfrom
amieiro:new-project-urldecode-warning

Conversation

@amieiro

@amieiro amieiro commented Sep 26, 2023

Copy link
Copy Markdown
Member

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