Permalink
Browse files

pass the whole connection object, instead of a post id and p2p id. see

  • Loading branch information...
1 parent 05a8b1d commit a1c761918518f292c7b20212c6e814490fef6a35 @scribu committed May 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 admin/fields.php
View
@@ -84,7 +84,7 @@ function render( $p2p_id, $post_id ) {
$args['value'] = $this->data['values'];
if ( isset( $this->data['default_cb'] ) ) {
- $this->data['default'] = call_user_func( $this->data['default_cb'], $post_id, $p2p_id );
+ $this->data['default'] = call_user_func( $this->data['default_cb'], p2p_get_connection( $p2p_id ) );
}
if ( isset( $this->data['default'] ) ) {

0 comments on commit a1c7619

Please sign in to comment.