Better support for multiple post types

Currently, a warning is thrown if you pass an array of post types. This gets rid of the warning and uses "items" for a generic term when more than one post type is involved. Also uses get_post_type_object() rather than directly accessing the $wp_post_types global.