Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/19/2013 06:04:15 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Add ignore_sticky_posts to bbp_has_forums() and bbp_has_replies() queries.

File:
1 edited

Legend:

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

    r4896 r4924  
    7575        // Default query args
    7676        $default = array(
    77                 'post_type'      => $default_post_type,         // Only replies
    78                 'post_parent'    => $default_post_parent,       // Of this topic
    79                 'posts_per_page' => bbp_get_replies_per_page(), // This many
    80                 'paged'          => bbp_get_paged(),            // On this page
    81                 'orderby'        => 'date',                     // Sorted by date
    82                 'order'          => 'ASC',                      // Oldest to newest
    83                 's'              => $default_reply_search,      // Maybe search
     77                'post_type'           => $default_post_type,         // Only replies
     78                'post_parent'         => $default_post_parent,       // Of this topic
     79                'posts_per_page'      => bbp_get_replies_per_page(), // This many
     80                'paged'               => bbp_get_paged(),            // On this page
     81                'orderby'             => 'date',                     // Sorted by date
     82                'order'               => 'ASC',                      // Oldest to newest
     83                'ignore_sticky_posts' => true,                       // Stickies not supported
     84                's'                   => $default_reply_search,      // Maybe search
    8485        );
    8586
Note: See TracChangeset for help on using the changeset viewer.