Making WordPress.org

Changeset 11757


Ignore:
Timestamp:
04/05/2022 11:04:47 PM (2 years ago)
Author:
coffee2code
Message:

Photo Directory, Photo: Prevent published photos from being considered controversial

File:
1 edited

Legend:

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

    r11713 r11757  
    10491049        }
    10501050
     1051        // Not controversial if it has been published.
     1052        if ( 'publish' === get_post_status( $post ) ) {
     1053            return false;
     1054        }
     1055
    10511056        // Controversial if photo got flagged as 'possible' or more likely by Vision.
    10521057        $flags = Photo::get_filtered_moderation_assessment( $post->ID );
Note: See TracChangeset for help on using the changeset viewer.