Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/19/2017 03:25:37 AM (9 years ago)
Author:
johnjamesjacoby
Message:

in_array(): be strict whenever possible.

Use wp_parse_id_list() on certain array values to ensure proper results.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/topics/template.php

    r6414 r6415  
    10811081    $forum_id = bbp_get_topic_forum_id( $topic_id );
    10821082    $stickies = bbp_get_stickies( $forum_id );
    1083     $retval   = in_array( $topic_id, $stickies );
     1083    $retval   = in_array( $topic_id, $stickies, true );
    10841084
    10851085    // Maybe check super stickies
Note: See TracChangeset for help on using the changeset viewer.