Expose menu_order.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2031 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4b9c67c876
commit
064976d3e0
|
@ -112,6 +112,10 @@ edCanvas = document.getElementById('content');
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php endif; ?>
|
<?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>
|
<tr>
|
||||||
<th scope="row"><?php _e('Delete'); ?>:</th>
|
<th scope="row"><?php _e('Delete'); ?>:</th>
|
||||||
<td><?php if ('edit' == $action) : ?>
|
<td><?php if ('edit' == $action) : ?>
|
||||||
|
|
|
@ -194,6 +194,7 @@ case 'edit':
|
||||||
$post_name = $postdata->post_name;
|
$post_name = $postdata->post_name;
|
||||||
$post_parent = $postdata->post_parent;
|
$post_parent = $postdata->post_parent;
|
||||||
$post_author = $postdata->post_author;
|
$post_author = $postdata->post_author;
|
||||||
|
$menu_order = $postdata->menu_order;
|
||||||
|
|
||||||
if( 'private' == $postdata->post_status && $postdata->post_author != $user_ID )
|
if( 'private' == $postdata->post_status && $postdata->post_author != $user_ID )
|
||||||
die ('You are not allowed to view other users\' private posts.');
|
die ('You are not allowed to view other users\' private posts.');
|
||||||
|
@ -241,6 +242,7 @@ case 'editpost':
|
||||||
$post_title = $_POST['post_title'];
|
$post_title = $_POST['post_title'];
|
||||||
$prev_status = $_POST['prev_status'];
|
$prev_status = $_POST['prev_status'];
|
||||||
$post_status = $_POST['post_status'];
|
$post_status = $_POST['post_status'];
|
||||||
|
$menu_order = (int) $_POST['menu_order'];
|
||||||
if (! empty($_POST['post_author'])) {
|
if (! empty($_POST['post_author'])) {
|
||||||
$post_author = (int) $_POST['post_author'];
|
$post_author = (int) $_POST['post_author'];
|
||||||
} else {
|
} else {
|
||||||
|
@ -334,6 +336,7 @@ case 'editpost':
|
||||||
to_ping = '$trackback',
|
to_ping = '$trackback',
|
||||||
post_modified = '$now',
|
post_modified = '$now',
|
||||||
post_modified_gmt = '$now_gmt',
|
post_modified_gmt = '$now_gmt',
|
||||||
|
menu_order = '$menu_order',
|
||||||
post_parent = '$post_parent'
|
post_parent = '$post_parent'
|
||||||
WHERE ID = $post_ID ");
|
WHERE ID = $post_ID ");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue