php 8.1 oEmbed warning
-
Hi,
Small warning started with php 8.1, when WordPress tries to handle an oEmbed request:
PHP Warning: Attempt to read property “post_type” on null in /plugins/events-manager/classes/em-location-post.php on line 76
It seems that the code on line 76 always assumes a location post_type exists. Adding some isset() checks on post and post_type before reading seems to fix it.
EM: 7.1.7, PHP: 8.1, WordPress: 6.8.2
Best,
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
You must be logged in to reply to this topic.