Support » Plugin: Simple Preview » 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_publish function to use empty instead of isset:

    function fake_publish($posts) {
            $posts[0]->post_status = 'publish';
            return $posts;

    It’s just a warning, but it’s one less 😉

  • The topic ‘Creating default object from empty value’ is closed to new replies.