Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/07/2019 07:40:16 PM (4 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/topics/template.php

    r6921 r6922  
    10561056
    10571057/**
    1058  * Return array of public topic statuses.
    1059  *
    1060  * @since 2.6.0 bbPress (r6383)
    1061  *
    1062  * @return array
    1063  */
    1064 function bbp_get_public_topic_statuses() {
    1065     $statuses = array(
    1066         bbp_get_public_status_id(),
    1067         bbp_get_closed_status_id()
    1068     );
    1069 
    1070     // Filter & return
    1071     return (array) apply_filters( 'bbp_get_public_topic_statuses', $statuses );
    1072 }
    1073 
    1074 /**
    1075  * Return array of non-public topic statuses.
    1076  *
    1077  * @since 2.6.0 bbPress (r6642)
    1078  *
    1079  * @return array
    1080  */
    1081 function bbp_get_non_public_topic_statuses() {
    1082     $statuses = array(
    1083         bbp_get_trash_status_id(),
    1084         bbp_get_spam_status_id(),
    1085         bbp_get_pending_status_id()
    1086     );
    1087 
    1088     // Filter & return
    1089     return (array) apply_filters( 'bbp_get_non_public_topic_statuses', $statuses );
    1090 }
    1091 
    1092 /**
    10931058 * Is the topic closed to new replies?
    10941059 *
Note: See TracChangeset for help on using the changeset viewer.