Ticket #7220: 7220.01.patch
File 7220.01.patch, 608 bytes (added by , 8 years ago) |
---|
-
src/bp-core/bp-core-attachments.php
52 52 foreach ( $upload_data as $key => $value ) { 53 53 if ( 'basedir' === $key || 'baseurl' === $key ) { 54 54 $upload_data[ $key ] = trailingslashit( $value ) . $attachments_dir; 55 56 // Fix for HTTPS. 57 if ( 'baseurl' === $key && is_ssl() ) { 58 $upload_data[ $key ] = str_replace( 'http://', 'https://', $upload_data[ $key ] ); 59 } 55 60 } else { 56 61 unset( $upload_data[ $key ] ); 57 62 }