Make WordPress Core

Changeset 2122


Ignore:
Timestamp:
01/24/2005 05:36:20 AM (21 years ago)
Author:
saxmatt
Message:

Fix for menu_order - http://mosquito.wordpress.org/view.php?id=740

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/post.php

    r2109 r2122  
    3737    $post_name = $_POST['post_name'];
    3838    $post_parent = 0;
     39    $menu_order  = 0;
    3940
    4041    if ( isset($_POST['parent_id']) )
    4142        $post_parent = $_POST['parent_id'];
     43
     44    if ( isset($_POST['menu_order']) )
     45        $menu_order = $_POST['menu_order'];
    4246
    4347    if ( empty($post_status) )
     
    9296
    9397    $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)
    9599            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')
    97101            ";
    98102
Note: See TracChangeset for help on using the changeset viewer.