<?php
/**
* Fires inside the post editor form tag.
*
* @since 3.0.0
*
* @param WP_Post $post Post object.
*/
do_action( 'post_edit_form_tag',
$post );
$referer =
wp_get_referer();
?>
>
<?php
wp_nonce_field( $nonce_action ); ?>
<input type="hidden" id="user-id" name="user_ID" value="<?php
echo (int) $user_ID; ?>" />
<input type="hidden" id="hiddenaction" name="action" value="<?php
echo esc_attr( $form_action ); ?>" />
<input type="hidden" id="originalaction" name="originalaction" value="<?php
echo esc_attr( $form_action ); ?>" />
<input type="hidden" id="post_author" name="post_author" value="<?php
echo esc_attr( $post->post_author
); ?>" />
<input type="hidden" id="post_type" name="post_type" value="<?php
echo esc_attr( $post_type ); ?>" />
<input type="hidden" id="original_post_status" name="original_post_status" value="<?php
echo esc_attr( $post->post_status
); ?>" />
<input type="hidden" id="referredby" name="referredby" value="<?php
echo $referer ?
esc_url( $referer ) : ''; ?>" />
<?php
if ( !
empty( $active_post_lock ) ) { ?>