PHP Notice/Warning
Hi,
we noticed the following php notices / warning in our log file:
PHP Notice Trying to get property of non-object in .... slack/includes/post-type.php on line 464 PHP Notice: Uninitialized string offset: 0 in ... slack/includes/post-type.php on line 469 PHP Warning: Illegal string offset 'active' in ... slack/includes/post-type.php on line 469
On line 464 there is the get_current_screen() function, which is defined on most admin pages, but not all. Here - if I'm right - it exists, but returns with NULL.
On line 469 the get_post_meta() function will return as string, but the code checks it as an array.
Thanks,
cc @lkraav
Thanks for the report, will take a look.
@gedex any updates here?
Figured it out, it's about calling post class functions (aka loading post entries) during an AJAX call.