Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/23/2015 05:24:42 AM (9 years ago)
Author:
netweb
Message:

Common: Include bbp_get_pending_status_id() post status for topic and reply post type cases in bbp_get_all_child_ids() and PHPDoc fixes including addition of missing @since revision

Props netweb. Fixes #2810

File:
1 edited

Legend:

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

    r5770 r5788  
    16451645 * Query the DB and get a the child id's of all children
    16461646 *
    1647  * @param int $parent_id Parent id
     1647 * @since bbPress (r3325)
     1648 *
     1649 * @param int $  parent_id  Parent id
    16481650 * @param string $post_type Post type. Defaults to 'post'
     1651 * @uses wp_cache_get() To check if there is a cache of the children
     1652 * @uses bbp_get_public_status_id() To get the public status id
     1653 * @uses bbp_get_private_status_id() To get the private status id
     1654 * @uses bbp_get_hidden_status_id() To get the hidden status id
     1655 * @uses bbp_get_pending_status_id() To get the pending status id
     1656 * @uses bbp_get_closed_status_id() To get the closed status id
     1657 * @uses bbp_get_trash_status_id() To get the trash status id
     1658 * @uses bbp_get_spam_status_id() To get the spam status id
     1659 * @uses bbp_get_forum_post_type() To get the forum post type
    16491660 * @uses bbp_get_topic_post_type() To get the topic post type
    1650  * @uses wp_cache_get() To check if there is a cache of the children
     1661 * @uses bbp_get_reply_post_type() To get the reply post type
    16511662 * @uses wpdb::prepare() To prepare the query
    16521663 * @uses wpdb::get_col() To get the result of the query in an array
    16531664 * @uses wp_cache_set() To set the cache for future use
    1654  * @uses apply_filters() Calls 'bbp_get_public_child_ids' with the child ids,
     1665 * @uses apply_filters() Calls 'bbp_get_all_child_ids' with the child ids,
    16551666 *                        parent id and post type
    16561667 * @return array The array of children
     
    16831694            // Topic
    16841695            case bbp_get_topic_post_type() :
     1696                $post_status[] = bbp_get_pending_status_id();
    16851697                $post_status[] = bbp_get_closed_status_id();
    16861698                $post_status[] = bbp_get_trash_status_id();
     
    16901702            // Reply
    16911703            case bbp_get_reply_post_type() :
     1704                $post_status[] = bbp_get_pending_status_id();
    16921705                $post_status[] = bbp_get_trash_status_id();
    16931706                $post_status[] = bbp_get_spam_status_id();
Note: See TracChangeset for help on using the changeset viewer.