Make WordPress Core

Changeset 16657


Ignore:
Timestamp:
12/01/2010 06:50:24 PM (13 years ago)
Author:
scribu
Message:

Prevent post_parent from being reset when there's no page attributes box. Props mikeschinkel. Fixes #13179

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-advanced.php

    r16583 r16657  
    206206<form name="post" action="post.php" method="post" id="post"<?php do_action('post_edit_form_tag'); ?>>
    207207<?php wp_nonce_field($nonce_action); ?>
     208<input type="hidden" id="parent_id" name="parent_id" value="<?php echo esc_attr( $post->post_parent ); ?>" />
    208209<input type="hidden" id="user-id" name="user_ID" value="<?php echo (int) $user_ID ?>" />
    209 <input type="hidden" id="hiddenaction" name="action" value="<?php echo esc_attr($form_action) ?>" />
    210 <input type="hidden" id="originalaction" name="originalaction" value="<?php echo esc_attr($form_action) ?>" />
     210<input type="hidden" id="hiddenaction" name="action" value="<?php echo esc_attr( $form_action ) ?>" />
     211<input type="hidden" id="originalaction" name="originalaction" value="<?php echo esc_attr( $form_action ) ?>" />
    211212<input type="hidden" id="post_author" name="post_author" value="<?php echo esc_attr( $post->post_author ); ?>" />
    212 <input type="hidden" id="post_type" name="post_type" value="<?php echo esc_attr($post_type) ?>" />
    213 <input type="hidden" id="original_post_status" name="original_post_status" value="<?php echo esc_attr($post->post_status) ?>" />
     213<input type="hidden" id="post_type" name="post_type" value="<?php echo esc_attr( $post_type ) ?>" />
     214<input type="hidden" id="original_post_status" name="original_post_status" value="<?php echo esc_attr( $post->post_status) ?>" />
    214215<input type="hidden" id="referredby" name="referredby" value="<?php echo esc_url(stripslashes(wp_get_referer())); ?>" />
    215216<?php
Note: See TracChangeset for help on using the changeset viewer.