Making WordPress.org

Changeset 12703


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

Photo Directory, Moderation: Show flags in Photo column for other post statuses as well.

See #7119.

File:
1 edited

Legend:

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

    r12693 r12703  
    235235            get_post_type( $post ) === Registrations::get_post_type()
    236236        &&
    237             // Post is pending.
    238             'pending' === $post->post_status
     237            // Post is in a non-published status that is still associated with a photo.
     238            in_array( $post->post_status, [ 'draft', 'pending', 'private', Flagged::get_post_status() ] )
    239239        ) {
    240240            $flags = Photo::get_filtered_moderation_assessment( $post->ID );
Note: See TracChangeset for help on using the changeset viewer.