[wp-cvs] wordpress/wp-admin post.php,1.120,1.121
Matthew Mullenweg
saxmatt at users.sourceforge.net
Mon Jan 24 05:36:23 GMT 2005
Update of /cvsroot/cafelog/wordpress/wp-admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6677/wp-admin
Modified Files:
post.php
Log Message:
Fix for menu_order - http://mosquito.wordpress.org/view.php?id=740
Index: post.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/post.php,v
retrieving revision 1.120
retrieving revision 1.121
diff -C2 -d -r1.120 -r1.121
*** post.php 20 Jan 2005 05:18:55 -0000 1.120
--- post.php 24 Jan 2005 05:36:20 -0000 1.121
***************
*** 37,44 ****
--- 37,48 ----
$post_name = $_POST['post_name'];
$post_parent = 0;
+ $menu_order = 0;
if ( isset($_POST['parent_id']) )
$post_parent = $_POST['parent_id'];
+ if ( isset($_POST['menu_order']) )
+ $menu_order = $_POST['menu_order'];
+
if ( empty($post_status) )
$post_status = 'draft';
***************
*** 92,98 ****
$postquery ="INSERT INTO $wpdb->posts
! (ID, post_author, post_date, post_date_gmt, post_content, post_title, post_excerpt, post_status, comment_status, ping_status, post_password, post_name, to_ping, post_modified, post_modified_gmt, post_parent)
VALUES
! ('$post_ID', '$user_ID', '$now', '$now_gmt', '$content', '$post_title', '$excerpt', '$post_status', '$comment_status', '$ping_status', '$post_password', '$post_name', '$trackback', '$now', '$now_gmt', '$post_parent')
";
--- 96,102 ----
$postquery ="INSERT INTO $wpdb->posts
! (ID, post_author, post_date, post_date_gmt, post_content, post_title, post_excerpt, post_status, comment_status, ping_status, post_password, post_name, to_ping, post_modified, post_modified_gmt, post_parent, menu_order)
VALUES
! ('$post_ID', '$user_ID', '$now', '$now_gmt', '$content', '$post_title', '$excerpt', '$post_status', '$comment_status', '$ping_status', '$post_password', '$post_name', '$trackback', '$now', '$now_gmt', '$post_parent', '$menu_order')
";
More information about the cvs
mailing list