Making WordPress.org

Changeset 12725


Ignore:
Timestamp:
07/10/2023 10:26:57 PM (19 months ago)
Author:
coffee2code
Message:

Photo Directory, Flagged: Treat flagged photos as pending.

See #7119.

File:
1 edited

Legend:

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

    r12705 r12725  
    5959        // Allow Photo metabox to be shown for flagged photos.
    6060        add_filter( 'wporg_photos_post_statuses_with_photo', [ __CLASS__, 'amend_with_post_status' ] );
     61
     62        // Treat flagged photos as pending.
     63        add_filter( 'wporg_photos_pending_post_statuses',    [ __CLASS__, 'amend_with_post_status' ] );
    6164
    6265        // Record the fact that a flagged photo was unflagged.
Note: See TracChangeset for help on using the changeset viewer.