Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/06/2016 07:50:41 PM (8 years ago)
Author:
r-a-y
Message:

Core: Use HTTPS when generating cover image URL.

Fixes #7220.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-attachments.php

    r10899 r11068  
    5353            if ( 'basedir' === $key || 'baseurl' === $key ) {
    5454                $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                }
    5560            } else {
    5661                unset( $upload_data[ $key ] );
Note: See TracChangeset for help on using the changeset viewer.