Changeset 2122
- Timestamp:
- 01/24/2005 05:36:20 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/post.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/post.php
r2109 r2122 37 37 $post_name = $_POST['post_name']; 38 38 $post_parent = 0; 39 $menu_order = 0; 39 40 40 41 if ( isset($_POST['parent_id']) ) 41 42 $post_parent = $_POST['parent_id']; 43 44 if ( isset($_POST['menu_order']) ) 45 $menu_order = $_POST['menu_order']; 42 46 43 47 if ( empty($post_status) ) … … 92 96 93 97 $postquery ="INSERT INTO $wpdb->posts 94 (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 )98 (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) 95 99 VALUES 96 ('$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' )100 ('$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') 97 101 "; 98 102
Note: See TracChangeset
for help on using the changeset viewer.