Skip to:
Content

bbPress.org

Changeset 4688


Ignore:
Timestamp:
01/07/2013 08:15:39 PM (9 years ago)
Author:
jmdodd
Message:

In bbp_get_dropdown(), set default post_parent to null, not 0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/common/template-tags.php

    r4687 r4688  
    13041304            'sort_column'        => 'menu_order',
    13051305            'exclude'            => array(),
     1306            'post_parent'        => null,
    13061307            'numberposts'        => -1,
    13071308            'orderby'            => 'menu_order',
     
    13711372            'sort_column'        => $r['sort_column'],
    13721373            'exclude'            => $r['exclude'],
     1374            'post_parent'        => $r['post_parent'],
    13731375            'numberposts'        => $r['numberposts'],
    13741376            'orderby'            => $r['orderby'],
     
    13771379            'disable_categories' => $r['disable_categories']
    13781380        );
    1379         if ( isset( $r['post_parent'] ) )
    1380             $post_arr['post_parent'] = $r['post_parent'];
    13811381
    13821382        $posts = get_posts( $post_arr );
Note: See TracChangeset for help on using the changeset viewer.