Making WordPress.org


Ignore:
Timestamp:
02/08/2017 06:36:00 PM (8 years ago)
Author:
coffee2code
Message:

Support Theme: Add moderation notice for posts that are archived.

See #2474.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/functions.php

    r4888 r4890  
    236236    $is_user_blocked = ! current_user_can( 'spectate' );
    237237
    238     if ( in_array( $post_status, array( 'pending', 'spam' ) ) ) :
     238    if ( in_array( $post_status, array( 'archived', 'pending', 'spam' ) ) ) :
    239239        $notice_class = $notice = '';
    240240
     
    251251                    $notice = __( 'This post has been flagged as spam.', 'wporg-forums' );
    252252                }
     253            } elseif ( 'archived' === $post_status ) {
     254                $notice = __( 'This post is currently archived.', 'wporg-forums' );
    253255            } else {
    254256                $notice = __( 'This post is currently pending.', 'wporg-forums' );
Note: See TracChangeset for help on using the changeset viewer.