Skip to:
Content

BuddyPress.org

Changeset 5089


Ignore:
Timestamp:
09/01/2011 02:01:22 PM (13 years ago)
Author:
boonebgorges
Message:

Switch do_stickies default to false in bp_has_forum_topics(), and switch to true only when bp_is_group_forum(). Fixes problem with sticky ordering when querying via AJAX. Fixes #3537

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums/bp-forums-template.php

    r5085 r5089  
    260260    $forum_id     = false;
    261261    $search_terms = false;
    262     $do_stickies  = true;
     262    $do_stickies  = false;
    263263
    264264    // User filtering
     
    295295    $per_page = isset( $_REQUEST['n'] ) ? intval( $_REQUEST['n'] ) : 20;
    296296
    297     // Unless set otherwise, stickies appear in normal order on the global forum directory and
    298     // on individual user topic pages
    299     if ( ( bp_is_directory() && bp_is_forums_component() && !bp_forums_enable_global_directory_stickies() ) || bp_is_user() )
    300         $do_stickies = false;
     297    // By default, stickies are only pushed to the top of the order on individual group forums
     298    if ( bp_is_group_forum() )
     299        $do_stickies = true;
    301300
    302301    $defaults = array(
Note: See TracChangeset for help on using the changeset viewer.