Open jeflopodev opened 2 days ago
Thanks for the report, @jeflopodev. I can see why this would end up happening. In fact, I'm a little surprised I didn't catch this one myself. I'll try to get an update out sooner than later.
This is untested, but if you need an immediate fix, I suspect you can replace line 178 with:
if( $params ) {
parse_str( $params, $query );
}
I was trying to use WP with AstroJs using the Rest API
posts
endpointhttp://<domain>/wp-json/wp/v2/posts
Since I had
define( 'WP_DEBUG', true );
I'm getting this as part of the output:
Seems that the first parameter has a
null
value andparse_str()
doesn't like that since it expects a string, or maybe there's no result and since it's mandatory as of php 8.0.0 it fails, or both I don't know 😅Just sharing, in case you find it useful in any way.