Changeset 12234
- Timestamp:
- 11/10/2022 09:00:47 PM (2 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/assets/js/submit.js
r12142 r12234 207 207 } 208 208 209 // Check for duplicate file name. 210 if ( ! error && PhotoDir.pending_file_names ) { 211 if ( PhotoDir.pending_file_names.includes( field.files[0]?.name ) ) { 212 field.setCustomValidity( PhotoDir.err_duplicate_pending_file_name ); 213 error = true; 214 } 215 } 216 209 217 // Check for file size error. 210 218 if ( ! error ) { -
sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/inc/uploads.php
r12231 r12234 279 279 'user_can_toggle_all_checkboxes' => User::can_toggle_confirmation_checkboxes(), 280 280 'toggle_all_checkboxes' => __( 'As a contributor of many photos, I am well aware of the requirements listed below and agree to them all.', 'wporg-photos' ), 281 282 // File names of user's pending submissions. 283 'err_duplicate_pending_file_name' => __( 'You already have a pending submission with this file name.', 'wporg-photos' ), 284 'pending_file_names' => User::get_pending_file_names(), 281 285 ] 282 286 );
Note: See TracChangeset
for help on using the changeset viewer.