Make WordPress Core

Changeset 12710 for trunk/wp-admin


Ignore:
Timestamp:
01/12/2010 07:03:03 PM (15 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

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

    r12708 r12710  
    8686$post_type_object = get_post_type_object($post_type);
    8787$post_type_cap = $post_type_object->capability_type;
    88 $form_post = 'post.php';
    89 if ( 'page' == $post_type )
    90     $form_post = 'page.php';
    9188
    9289// All meta boxes should be defined and added before the first do_meta_boxes() call (or potentially during the do_meta_boxes action).
     
    158155<div id="message" class="updated"><p><?php echo $message; ?></p></div>
    159156<?php endif; ?>
    160 <form name="post" action="<?php echo $form_post; ?>" method="post" id="post">
     157<form name="post" action="post.php" method="post" id="post">
    161158<?php wp_nonce_field($nonce_action); ?>
    162159<input type="hidden" id="user-id" name="user_ID" value="<?php echo (int) $user_ID ?>" />
Note: See TracChangeset for help on using the changeset viewer.