Making WordPress.org

Changeset 4232


Ignore:
Timestamp:
10/13/2016 11:11:05 PM (9 years ago)
Author:
coffee2code
Message:

Support Forums, Moderators: Add class constant VIEWS to list moderator-only views.

See #2134.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-moderators.php

    r3937 r4232  
    88    const ARCHIVED_META  = '_wporg_bbp_unarchived_post_status';
    99    const DEFAULT_STATUS = 'publish';
     10    const VIEWS          = array( 'archived', 'pending', 'spam' );
    1011
    1112    public function __construct() {
     
    2526    }
    2627
     28    /**
     29     * Registers views.
     30     *
     31     * Note: Be sure to update class constant VIEWS when adding/removing views.
     32     */
    2733    public function register_views() {
    2834        if ( ! current_user_can( 'moderate' ) ) {
Note: See TracChangeset for help on using the changeset viewer.