Skip to content

Fixed PHP 8.1.10 bug Core WP Deprecated errors#3301

Open
thejaydip wants to merge 1 commit intoWordPress:trunkfrom
thejaydip:untrailingslashit
Open

Fixed PHP 8.1.10 bug Core WP Deprecated errors#3301
thejaydip wants to merge 1 commit intoWordPress:trunkfrom
thejaydip:untrailingslashit

Conversation

@thejaydip
Copy link

Check non-empty variable before return may be it will work.

Trac ticket: https://core.trac.wordpress.org/ticket/56612

Copy link
Member

@jrfnl jrfnl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@thejaydip This is not the right fix. A backtrace is needed to find the source of the problem and it should be fixed at the source, not where the deprecation is being thrown.

Note: the Trac ticket you've associated with this PR is also unrelated.

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