Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit a1c761918518f292c7b20212c6e814490fef6a35 1 parent 05a8b1d
@scribu authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  admin/fields.php
View
2  admin/fields.php
@@ -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'] ) ) {
Please sign in to comment.
Something went wrong with that request. Please try again.