Changeset 13315 for trunk/src/bp-core/classes/class-bp-attachment.php
- Timestamp:
- 08/13/2022 12:16:46 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/classes/class-bp-attachment.php
r13175 r13315 494 494 } 495 495 496 /** 497 * WordPress image supported types. 498 * @see wp_attachment_is() 499 */ 500 $supported_image_types = array( 501 'jpg' => 1, 502 'jpeg' => 1, 503 'jpe' => 1, 504 'gif' => 1, 505 'png' => 1, 506 ); 496 // Set supported image types. 497 $supported_image_types = array_fill_keys( bp_attachments_get_allowed_types( 'image' ), 1 ); 507 498 508 499 foreach ( $check_types as $file ) {
Note: See TracChangeset
for help on using the changeset viewer.