danielbachhuber/Co-Authors-Plus — pull request #9 by mintindeed (2012-01-27 22:14:51+00:00)
Title: Prevent notices when editing a custom post type post

`$post_type_object = get_post_type_object( $post->post_type );` can return a null object, which causes all the other turtles to throw notices because `$post_type_object->cap` isn't set. This bails if `$post_type_object` is empty to prevent that. (Went with `empty()` instead of `is_null()` in case the `get_post_type_object()` return type changes.)

It's a notice, but it kills my dev environment with "header already sent" =P