Ticket #16673: revert-13179.diff

File revert-13179.diff, 801 bytes (added by solarissmoke, 2 years ago)

Don't need to have hidden input any more as we not longer set post_parent to empty if it's not POSTed

Line 
1Index: wp-admin/edit-form-advanced.php
2===================================================================
3--- wp-admin/edit-form-advanced.php     (revision 18084)
4+++ wp-admin/edit-form-advanced.php     (working copy)
5@@ -204,7 +204,6 @@
6 <?php endif; ?>
7 <form name="post" action="post.php" method="post" id="post"<?php do_action('post_edit_form_tag'); ?>>
8 <?php wp_nonce_field($nonce_action); ?>
9-<input type="hidden" name="parent_id" value="<?php echo esc_attr( $post->post_parent ); ?>" />
10 <input type="hidden" id="user-id" name="user_ID" value="<?php echo (int) $user_ID ?>" />
11 <input type="hidden" id="hiddenaction" name="action" value="<?php echo esc_attr( $form_action ) ?>" />
12 <input type="hidden" id="originalaction" name="originalaction" value="<?php echo esc_attr( $form_action ) ?>" />