Skip to:
Content

bbPress.org

Changeset 5889


Ignore:
Timestamp:
08/07/2015 09:38:39 AM (4 years ago)
Author:
netweb
Message:

Replies: Include replies menu order when creating replies with bbp_insert_reply() improving reply unit tests

See #2843

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/replies/functions.php

    r5880 r5889  
    2929function bbp_insert_reply( $reply_data = array(), $reply_meta = array() ) {
    3030
    31     // Forum
     31    // Parse arguments against default values
    3232    $reply_data = bbp_parse_args( $reply_data, array(
    3333        'post_parent'    => 0, // topic ID
     
    3838        'post_content'   => '',
    3939        'post_title'     => '',
    40         'menu_order'     => 0,
     40    //  'menu_order'     => 0,
     41        'menu_order'     => bbp_get_topic_reply_count( $reply_data['post_parent'], true ) + 1,
    4142        'comment_status' => 'closed'
    4243    ), 'insert_reply' );
     
    5051    }
    5152
    52     // Forum meta
     53    // Parse arguments against default values
    5354    $reply_meta = bbp_parse_args( $reply_meta, array(
    5455        'author_ip' => bbp_current_author_ip(),
Note: See TracChangeset for help on using the changeset viewer.