Expose menu_order.

git-svn-id: http://svn.automattic.com/wordpress/trunk@2031 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2005-01-02 00:09:05 +00:00
parent 4b9c67c876
commit 064976d3e0
2 changed files with 7 additions and 0 deletions

View File

@ -112,6 +112,10 @@ edCanvas = document.getElementById('content');
</td>
</tr>
<?php endif; ?>
<tr>
<th scope="row" width="25%"><?php _e('Page Order') ?>:</th>
<td><input name="menu_order" type="text" size="4" id="menu_order" value="<?php echo $menu_order ?>" /></td>
</tr>
<tr>
<th scope="row"><?php _e('Delete'); ?>:</th>
<td><?php if ('edit' == $action) : ?>

View File

@ -194,6 +194,7 @@ case 'edit':
$post_name = $postdata->post_name;
$post_parent = $postdata->post_parent;
$post_author = $postdata->post_author;
$menu_order = $postdata->menu_order;
if( 'private' == $postdata->post_status && $postdata->post_author != $user_ID )
die ('You are not allowed to view other users\' private posts.');
@ -241,6 +242,7 @@ case 'editpost':
$post_title = $_POST['post_title'];
$prev_status = $_POST['prev_status'];
$post_status = $_POST['post_status'];
$menu_order = (int) $_POST['menu_order'];
if (! empty($_POST['post_author'])) {
$post_author = (int) $_POST['post_author'];
} else {
@ -334,6 +336,7 @@ case 'editpost':
to_ping = '$trackback',
post_modified = '$now',
post_modified_gmt = '$now_gmt',
menu_order = '$menu_order',
post_parent = '$post_parent'
WHERE ID = $post_ID ");