Making WordPress.org

Changeset 12704


Ignore:
Timestamp:
07/03/2023 07:24:12 PM (3 years ago)
Author:
coffee2code
Message:

Photo Directory, Moderation: Don't show Photo column flags for unflagged photos.

The presumption being that an admin has reviewed and dismissed the auto-assigned content flags.

See #7119.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/inc/moderation.php

    r12703 r12704  
    237237            // Post is in a non-published status that is still associated with a photo.
    238238            in_array( $post->post_status, [ 'draft', 'pending', 'private', Flagged::get_post_status() ] )
     239        &&
     240            // Post hasn't been unflagged.
     241            ! Flagged::was_unflagged( $post )
    239242        ) {
    240243            $flags = Photo::get_filtered_moderation_assessment( $post->ID );
Note: See TracChangeset for help on using the changeset viewer.