Skip to:
Content

bbPress.org

Ticket #2987: 2987.diff

File 2987.diff, 516 bytes (added by thebrandonallen, 7 years ago)
  • src/includes/forums/functions.php

    diff --git src/includes/forums/functions.php src/includes/forums/functions.php
    index 6e9469c..efdb6a8 100644
    function bbp_pre_get_posts_normalize_forum_visibility( $posts_query = null ) { 
    22442244                }
    22452245
    22462246                // Get any existing meta queries
    2247                 $meta_query   = $posts_query->get( 'meta_query' );
     2247                $meta_query   = $posts_query->get( 'meta_query', array() );
    22482248
    22492249                // Add our meta query to existing
    22502250                $meta_query[] = $forum_ids;