Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/07/2019 07:40:16 PM (5 years ago)
Author:
johnjamesjacoby
Message:

Statuses: normalize status related functions across post types.

This commit adds 2 missing functions for forum statuses, and relocates all of them to the correct functions.php files for their post types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/replies/template.php

    r6903 r6922  
    829829
    830830/**
    831  * Return array of public reply statuses.
    832  *
    833  * @since 2.6.0 bbPress (r6705)
    834  *
    835  * @return array
    836  */
    837 function bbp_get_public_reply_statuses() {
    838     $statuses = array(
    839         bbp_get_public_status_id()
    840     );
    841 
    842     // Filter & return
    843     return (array) apply_filters( 'bbp_get_public_reply_statuses', $statuses );
    844 }
    845 
    846 /**
    847  * Return array of non-public reply statuses.
    848  *
    849  * @since 2.6.0 bbPress (r6791)
    850  *
    851  * @return array
    852  */
    853 function bbp_get_non_public_reply_statuses() {
    854     $statuses = array(
    855         bbp_get_trash_status_id(),
    856         bbp_get_spam_status_id(),
    857         bbp_get_pending_status_id()
    858     );
    859 
    860     // Filter & return
    861     return (array) apply_filters( 'bbp_get_non_public_reply_statuses', $statuses );
    862 }
    863 
    864 /**
    865831 * Is the reply publicly viewable?
    866832 *
Note: See TracChangeset for help on using the changeset viewer.