Making WordPress.org

Changeset 12728


Ignore:
Timestamp:
07/10/2023 10:32:42 PM (3 years ago)
Author:
coffee2code
Message:

Photo Directory, Moderation: Include flagged photos in Awaiting Moderation table.

See #7119.

File:
1 edited

Legend:

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

    r12704 r12728  
    618618        }
    619619
    620         $pending = get_posts( [
    621             'posts_per_page' => -1,
    622             'author'         => (int) $user_id,
    623             'post_status'    => 'pending',
    624             'post_type'      => Registrations::get_post_type(),
    625         ] );
     620        $pending = User::get_pending_photos( $user_id, '' );
    626621
    627622        // Bail if user does not have any pending posts.
Note: See TracChangeset for help on using the changeset viewer.