Skip to:
Content

bbPress.org

Changeset 6289


Ignore:
Timestamp:
02/15/2017 03:21:42 PM (8 years ago)
Author:
johnjamesjacoby
Message:

Queries: Return empty array if no parent ID or no post-type are passed.

See #3059.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/common/functions.php

    r6264 r6289  
    16811681
    16821682    // Bail if nothing passed
    1683     if ( empty( $parent_id ) ) {
    1684         return false;
     1683    if ( empty( $parent_id ) || empty( $post_type ) ) {
     1684        return array();
    16851685    }
    16861686
     
    17411741
    17421742    // Bail if nothing passed
    1743     if ( empty( $parent_id ) ) {
    1744         return false;
     1743    if ( empty( $parent_id ) || empty( $post_type ) ) {
     1744        return array();
    17451745    }
    17461746
Note: See TracChangeset for help on using the changeset viewer.