Changeset 12727 for sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/inc/user.php
- Timestamp:
- 07/10/2023 10:30:23 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/inc/user.php
r12726 r12727 237 237 if ( $user_id ) { 238 238 $max_pending_submissions = self::get_concurrent_submission_limit( $user_id ); 239 $posts = get_posts( [ 240 'fields' => 'ids', 241 'posts_per_page' => $max_pending_submissions, 242 'author' => $user_id, 243 'post_status' => 'pending', 244 'post_type' => Registrations::get_post_type(), 245 ] ); 246 247 if ( count( $posts ) < $max_pending_submissions ) { 239 $pending_photos_count = self::count_pending_photos( $user_id ); 240 241 if ( $pending_photos_count < $max_pending_submissions ) { 248 242 $limit_reached = false; 249 243 }
Note: See TracChangeset
for help on using the changeset viewer.