Skip to:
Content

bbPress.org


Ignore:
Timestamp:
04/22/2011 11:05:31 AM (15 years ago)
Author:
johnjamesjacoby
Message:

Add 'orphan' post status. See #1469.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbpress.php

    r2995 r3018  
    214214     */
    215215    var $tab_index;
    216    
     216
    217217
    218218    /**
     
    268268        $this->spam_status_id   = apply_filters( 'bbp_spam_post_status',   'spam'   );
    269269        $this->closed_status_id = apply_filters( 'bbp_closed_post_status', 'closed' );
     270        $this->orphan_status_id = apply_filters( 'bbp_orphan_post_status', 'orphan' );
    270271        $this->trash_status_id  = 'trash';
    271272
     
    622623        register_post_status( $this->spam_status_id, $status );
    623624
     625        // Orphan
     626        $status = apply_filters( 'bbp_register_orphan_post_status', array(
     627            'label'                     => _x( 'Orphan', 'post', 'bbpress' ),
     628            'label_count'               => _nx_noop( 'Orphan <span class="count">(%s)</span>', 'Orphans <span class="count">(%s)</span>', 'bbpress' ),
     629            'protected'                 => true,
     630            'exclude_from_search'       => true,
     631            'show_in_admin_status_list' => true,
     632            'show_in_admin_all_list'    => false
     633        ) );
     634        register_post_status( $this->orphan_status_id, $status );
     635
    624636        /**
    625637         * Trash fix
Note: See TracChangeset for help on using the changeset viewer.