Make WordPress Core

Ticket #16673: revert-13179.diff

File revert-13179.diff, 801 bytes (added by solarissmoke, 7 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

  • wp-admin/edit-form-advanced.php

    204204<?php endif; ?>
    205205<form name="post" action="post.php" method="post" id="post"<?php do_action('post_edit_form_tag'); ?>>
    206206<?php wp_nonce_field($nonce_action); ?>
    207 <input type="hidden" name="parent_id" value="<?php echo esc_attr( $post->post_parent ); ?>" />
    208207<input type="hidden" id="user-id" name="user_ID" value="<?php echo (int) $user_ID ?>" />
    209208<input type="hidden" id="hiddenaction" name="action" value="<?php echo esc_attr( $form_action ) ?>" />
    210209<input type="hidden" id="originalaction" name="originalaction" value="<?php echo esc_attr( $form_action ) ?>" />