mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-10 18:37:58 +01:00
Fix static page editing.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1633 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
760af53e88
commit
8050445860
@ -1,8 +1,14 @@
|
|||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$form_action = 'post';
|
if (0 == $post_ID) {
|
||||||
$form_extra = '';
|
$form_action = 'post';
|
||||||
|
$form_extra = '';
|
||||||
|
} else {
|
||||||
|
$form_action = 'editpost';
|
||||||
|
$form_extra = "<input type='hidden' name='post_ID' value='$post_ID' />";
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<form name="post" action="post.php" method="post" id="post">
|
<form name="post" action="post.php" method="post" id="post">
|
||||||
@ -13,7 +19,9 @@ if (isset($mode) && 'bookmarklet' == $mode) {
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<input type="hidden" name="user_ID" value="<?php echo $user_ID ?>" />
|
<input type="hidden" name="user_ID" value="<?php echo $user_ID ?>" />
|
||||||
<input type="hidden" name="action" value='<?php echo $form_action . $form_extra ?>' />
|
<input type="hidden" name="action" value='<?php echo $form_action ?>' />
|
||||||
|
<?php echo $form_extra ?>
|
||||||
|
<input type="hidden" name="post_status" value="static" />
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
<!--
|
<!--
|
||||||
@ -53,7 +61,7 @@ edCanvas = document.getElementById('content');
|
|||||||
|
|
||||||
<p class="submit">
|
<p class="submit">
|
||||||
<input name="savepage" type="submit" id="savepage" tabindex="6" style="font-weight: bold;" value="<?php _e('Save') ?>" />
|
<input name="savepage" type="submit" id="savepage" tabindex="6" style="font-weight: bold;" value="<?php _e('Save') ?>" />
|
||||||
<input name="referredby" type="hidden" id="referredby" value="<?php if (isset($_SERVER['HTTP_REFERER'])) echo urlencode($_SERVER['HTTP_REFERER']); ?>" />
|
<input name="referredby" type="hidden" id="referredby" value="<?php if (isset($_SERVER['HTTP_REFERER'])) echo htmlspecialchars($_SERVER['HTTP_REFERER']); ?>" />
|
||||||
</p>
|
</p>
|
||||||
<?php do_action('edit_page_form', ''); ?>
|
<?php do_action('edit_page_form', ''); ?>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user