Changeset 5788 for trunk/src/includes/common/functions.php
- Timestamp:
- 05/23/2015 05:24:42 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/common/functions.php
r5770 r5788 1645 1645 * Query the DB and get a the child id's of all children 1646 1646 * 1647 * @param int $parent_id Parent id 1647 * @since bbPress (r3325) 1648 * 1649 * @param int $ parent_id Parent id 1648 1650 * @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 1649 1660 * @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 children1661 * @uses bbp_get_reply_post_type() To get the reply post type 1651 1662 * @uses wpdb::prepare() To prepare the query 1652 1663 * @uses wpdb::get_col() To get the result of the query in an array 1653 1664 * @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, 1655 1666 * parent id and post type 1656 1667 * @return array The array of children … … 1683 1694 // Topic 1684 1695 case bbp_get_topic_post_type() : 1696 $post_status[] = bbp_get_pending_status_id(); 1685 1697 $post_status[] = bbp_get_closed_status_id(); 1686 1698 $post_status[] = bbp_get_trash_status_id(); … … 1690 1702 // Reply 1691 1703 case bbp_get_reply_post_type() : 1704 $post_status[] = bbp_get_pending_status_id(); 1692 1705 $post_status[] = bbp_get_trash_status_id(); 1693 1706 $post_status[] = bbp_get_spam_status_id();
Note: See TracChangeset
for help on using the changeset viewer.