Prevent post_parent from being reset when there's no page attributes box. Props mikeschinkel. Fixes #13179
git-svn-id: http://svn.automattic.com/wordpress/trunk@16657 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5e43a0760b
commit
98208ed882
|
@ -205,6 +205,7 @@ require_once('./admin-header.php');
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<form name="post" action="post.php" method="post" id="post"<?php do_action('post_edit_form_tag'); ?>>
|
<form name="post" action="post.php" method="post" id="post"<?php do_action('post_edit_form_tag'); ?>>
|
||||||
<?php wp_nonce_field($nonce_action); ?>
|
<?php wp_nonce_field($nonce_action); ?>
|
||||||
|
<input type="hidden" id="parent_id" name="parent_id" value="<?php echo esc_attr( $post->post_parent ); ?>" />
|
||||||
<input type="hidden" id="user-id" name="user_ID" value="<?php echo (int) $user_ID ?>" />
|
<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="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="originalaction" name="originalaction" value="<?php echo esc_attr( $form_action ) ?>" />
|
||||||
|
|
Loading…
Reference in New Issue