Skip to:
Content

bbPress.org


Ignore:
Timestamp:
02/24/2011 10:39:13 PM (15 years ago)
Author:
johnjamesjacoby
Message:

Rename the 'ignore_sticky_topics' flag to 'show_stickies' and reverse logic to default to true instead of false. This is more natural behavior in the logic that we are turning something off with the word 'false' rather than ignoring stickies with the word 'true'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-general-functions.php

    r2922 r2935  
    388388    $query_args = wp_parse_args( $query_args );
    389389
    390     // Set ignore_sticky_topics to true if it wasn't supplied
    391     if ( !isset( $query_args['ignore_sticky_topics'] ) )
    392         $query_args['ignore_sticky_topics'] = true;
     390    // Set exclude_stickies to true if it wasn't supplied
     391    if ( !isset( $query_args['show_stickies'] ) )
     392        $query_args['show_stickies'] = false;
    393393
    394394    $bbp->views[$view]['title'] = $title;
Note: See TracChangeset for help on using the changeset viewer.