Hi guys in fact in edit-post.php you get the content before sending it since the last update. Don’t know why you changed that tarek?
What you need to do if you want the new content to show up right away is to edit the folowing lines.
On line 46 cut:
$curpost = get_post( $post_id );
if ( !$curpost ) {
return __( 'Invalid post', 'wpuf' );
}
then paste it after the //process post (arround line 67) :
//process post
if ( isset( $_POST[‘wpuf_edit_post_submit’] ) && wp_verify_nonce( $_REQUEST[‘_wpnonce’], ‘wpuf-edit-post’ ) ) {
$this->submit_post();
}
That gives you :
//process post
if ( isset( $_POST['wpuf_edit_post_submit'] ) && wp_verify_nonce( $_REQUEST['_wpnonce'], 'wpuf-edit-post' ) ) {
$this->submit_post();
}
$curpost = get_post( $post_id );
if ( !$curpost ) {
return __( 'Invalid post', 'wpuf' );
}
//show post form
$this->edit_form( $curpost );
Hope it helps 🙂