Always use post.php for form action. see #9674

git-svn-id: http://svn.automattic.com/wordpress/trunk@12710 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-01-12 19:03:03 +00:00
parent f4c3545fba
commit 6ce726545b
1 changed files with 1 additions and 4 deletions

View File

@ -85,9 +85,6 @@ if ( 0 == $post_ID ) {
$post_type_object = get_post_type_object($post_type);
$post_type_cap = $post_type_object->capability_type;
$form_post = 'post.php';
if ( 'page' == $post_type )
$form_post = 'page.php';
// All meta boxes should be defined and added before the first do_meta_boxes() call (or potentially during the do_meta_boxes action).
require_once('includes/meta-boxes.php');
@ -157,7 +154,7 @@ require_once('admin-header.php');
<?php if ( $message ) : ?>
<div id="message" class="updated"><p><?php echo $message; ?></p></div>
<?php endif; ?>
<form name="post" action="<?php echo $form_post; ?>" method="post" id="post">
<form name="post" action="post.php" method="post" id="post">
<?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) ?>" />