Closed dd32 closed 5 months ago
Looks like this started right when I updated GB to 18.5… yep, in 18.3 they started passing post classes back in the API. I think it's safe to shortcut like this and skip returning the custom classes, since we don't really use the editor on News anyway.
Unsure why this has suddenly started, but the above PHP Warning is happening in the REST api fairly frequently.
Looking at the WP_Query object, it appears to be uninitialised, so this seems like a shortcut we can take to avoid it..