scribu/wp-posts-to-posts — Issue #32: Check 'from_query_vars' before showing admin box
Author: scribu
Created: 2011-10-21 17:45:37+00:00
State: open

Something like this:

`if ( !empty( get_posts( array_merge( $ctype->from_query_vars, array( 'post__in' => $array( $post_id ) ) ) ) )`

http://wordpress.org/support/topic/plugin-posts-2-posts-limit-connection-type-by-template-via-from_query_vars