Closed AlexGStapleton closed 3 months ago
Hi @AlexGStapleton, just wanted to mention on line 75 here now I think you may have meant to go with this
if ( ! is_array( $query['date_query_relative'] ) ) {
instead of this
if ( ! is_array( stripslashes( $query['date_query_relative'] ) ) ) {
It was still throwing the fatal error.
Good call. Thanks mate.
Resolves https://github.com/siteorigin/so-widgets-bundle/issues/1975
date_query_relative
can be a (json encoded)string
, or anarray
. This PR allows for both.