Making WordPress.org

Changeset 5621


Ignore:
Timestamp:
07/06/2017 07:35:57 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Support Forums: Remove 'Unapprove' link for topics and replies.

If a post violates the forum rules, it can either be archived or marked as spam, but it should not be moved back to moderation queue.

Fixes #2936.

File:
1 edited

Legend:

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

    r5620 r5621  
    271271
    272272        /*
     273         * Remove 'Unapprove' link. If a post violates the forum rules, it can either be archived
     274         * or marked as spam, but it should not be moved back to moderation queue.
     275         */
     276        if ( 'pending' !== get_post_status( $post_id ) ) {
     277            unset( $r['approve'] );
     278        }
     279
     280        /*
    273281         * Remove 'Reply' link. The theme adds its own 'Reply to Topic' sidebar link
    274282         * for quick access to reply form, making the default inline link redundant.
Note: See TracChangeset for help on using the changeset viewer.