Skip to:
Content

bbPress.org


Ignore:
Timestamp:
08/10/2017 02:49:48 PM (7 years ago)
Author:
johnjamesjacoby
Message:

Fix undeclared array in forum template functions for PHP 7.1 compatibility.

Props hellofromTonya. See #3031. (2.5 branch)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/includes/forums/template.php

    r5693 r6648  
    681681
    682682    // Setup possible post__not_in array
    683     $post_stati[] = bbp_get_public_status_id();
     683    $post_stati = array( bbp_get_public_status_id() );
    684684
    685685    // Super admin get whitelisted post statuses
Note: See TracChangeset for help on using the changeset viewer.