-
-
Notifications
You must be signed in to change notification settings - Fork 4
🐞 Issues reported in debug.log #123
Comments
I'm running no plugins and the default 2015 theme. But I have now identified that the ltrim() issues seem to be caused when a new page (on front-end or back-end) is visited immediately after my APCu object cache is cleared, so it's extremely hard to pin down what the real cause is. I can see that |
Seem two different issues.
|
A potential fix for the
To: |
So that solution suggests that what's happening is that somewhere core is trying to escape something that's an object (or array, or integer, etc) and not a string. In that case, @mattyrob's "potential fix" is the right way to go. |
Here we used the null coalesce operator. |
But do we know it's an object here and not an array? If it's an array, |
According to upstream documentation The errors we are seeing is because passing Using |
I think we should return the same values as before, as an example: $x = wp_kses( null, array() );
var_dump( $x );
string(0) "" So return an empty string on |
... I have already reported about the same error (deprecation) with formatting.php, line 4414, and it still exists (php 8.1 and 8.2) ... |
Expected behavior
Empty log
Current behavior
Possible solution
No response
Steps to reproduce bug
Load a page
Context
No response
ClassicPress version
2.0
PHP version
8.1
Can you help?
I can help test a solution
The text was updated successfully, but these errors were encountered: