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: default excerptRendered to empty string #2897

Merged
merged 3 commits into from Aug 14, 2023

Conversation

izzygld
Copy link
Contributor

@izzygld izzygld commented Aug 14, 2023

Solving This error/pull

Error: Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated
Goal: To return empty string if no excerpt, (instead of just null)

Screenshot 2023-08-14 at 11 49 09

Additional info

#2896 (comment)

Where has this been tested?

Plugin Version: 1.14.10

WordPress Version: 6.3

@justlevine justlevine changed the title update excerptRendered to be a string if null fix: default excerptRendered to empty string Aug 14, 2023
@justlevine justlevine added Type: Bug Something isn't working Status: In Review Needs to be reviewed by a project maintainer before merge labels Aug 14, 2023
@coveralls
Copy link

coveralls commented Aug 14, 2023

Coverage Status

coverage: 84.981%. remained the same when pulling c343f25 on izzygld:update-excerpt-null into 57e697b on wp-graphql:develop.

src/Model/Post.php Outdated Show resolved Hide resolved
@codeclimate
Copy link

codeclimate bot commented Aug 14, 2023

Code Climate has analyzed commit c343f25 and detected 1 issue on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 1

View more on Code Climate.

@jasonbahl jasonbahl merged commit 52cc857 into wp-graphql:develop Aug 14, 2023
24 of 25 checks passed
@jasonbahl jasonbahl mentioned this pull request Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: In Review Needs to be reviewed by a project maintainer before merge Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants