Re: buddypress + p2 theme
Ok, so this is with the current download-able version of P2 (not a trunk version):
functions.php – in function prologue_new_post():
//Find these two lines at the bottom of the function:
echo $post_id? $post_id : '0';
exit;
//Above them, put this:
if ( $post_id ) do_action( 'edit_post', $post_id, get_post( $post_ID ) );
functions.php – in function prologue_new_post_noajax():
//Find these two lines at the bottom of the function:
wp_redirect( get_bloginfo( 'url' ) . '/' );
exit;
//Above them, put this:
if ( $post_id ) do_action( 'edit_post', $post_id, get_post( $post_ID ) );