scribu/wp-posts-to-posts — Issue #96: When a connection has multiple post types "Search" field text in metabox only shows first post type name
Author: Mompracem
Created: 2012-01-15 11:48:00+00:00
State: open

Suppose I register a connection type with an array of post types (from/to), for example:

p2p_register_connection_type( array(
'id' => 'things-to-otherthings',
'from' => 'stuff',
'to' => array('fruits','vegetables','things'),
'title' => array( 'from' => __('Related things', 'mythemedomain'), 'to' => __('Related stuff', 'mythemedomain') )
));

The meta box will show correct labels as specified in the title. However, the "search" field to add more connections would display the default text as "Search Fruits". It should either display "Search fruits, vegetables, things" or rather "Search among posts", contents, etc something like that.

I'm not sure whether if this is a bug or there's a fix in the p2p_register_connection_type to edit the label for the Search field