Closed mcaskill closed 9 years ago
Thanks! I'll take a look at these two things and push a new version up this weekend hopefully.
@mcaskill I've updated this in 1.0.2 to be:
$current_id = is_object( $post ) ? $post->ID : $_POST['parent'];
That's working for this on my end, but let me know if it's still causing issues for you.
Hi,
Depending on PHP's error reporting level, this will cause a "Trying to get property of non-object" notice:
On my end, I've fixed it this way:
Although, I'm wondering if
empty()
would be a better choice:Cheers!