Skip to:
Content

bbPress.org

Changeset 4573


Ignore:
Timestamp:
12/14/2012 09:50:17 PM (14 years ago)
Author:
johnjamesjacoby
Message:

bbp_get_dropdown():

  • Use get_pages() instead of get_posts().
  • Pass walker and disabled_categories array items into get_pages().
  • Fixes #2102.
File:
1 edited

Legend:

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

    r4557 r4573  
    13371337                $retval    = '';
    13381338                $disabled  = disabled( isset( bbpress()->options[$r['disabled']] ), true, false );
    1339                 $posts     = get_posts( array(
    1340                         'post_type'   => $r['post_type'],
    1341                         'post_status' => $r['post_status'],
    1342                         'sort_column' => $r['sort_column'],
    1343                         'post_parent' => $r['post_parent'],
    1344                         'exclude'     => $r['exclude'],
    1345                         'numberposts' => $r['numberposts'],
    1346                         'orderby'     => $r['orderby'],
    1347                         'order'       => $r['order'],
     1339                $posts     = get_pages( array(
     1340                        'post_type'          => $r['post_type'],
     1341                        'post_status'        => $r['post_status'],
     1342                        'sort_column'        => $r['sort_column'],
     1343                        'post_parent'        => $r['post_parent'],
     1344                        'exclude'            => $r['exclude'],
     1345                        'numberposts'        => $r['numberposts'],
     1346                        'orderby'            => $r['orderby'],
     1347                        'order'              => $r['order'],
     1348                        'walker'             => $r['walker'],
     1349                        'disable_categories' => $r['disable_categories']
    13481350                ) );
    13491351
Note: See TracChangeset for help on using the changeset viewer.