Creating default object from empty value
-
Noticed an unanswered ticket here about this.
I saw this on my local site and corrected it by changing the
fake_publishfunction to use empty instead of isset:function fake_publish($posts) { if(!empty($posts)){ $posts[0]->post_status = 'publish'; return $posts; } }It’s just a warning, but it’s one less 😉
HTH
The topic ‘Creating default object from empty value’ is closed to new replies.