Skip to content
This repository was archived by the owner on Jul 17, 2026. It is now read-only.
This repository was archived by the owner on Jul 17, 2026. It is now read-only.

Attachments not working when SSL is activated #1

Description

@Gandhi11

I had to make a little modification to your code since wordpress doesn't change his function wp_upload_dir() when ssl is activated.

In your gf-notification-attachment.php at line 79 I add this

if(is_ssl()){
    wp_upload_dir['baseurl'] = str_replace("http://", "https://", $wp_upload_dir['baseurl']);
}

before this line

$notification['attachments'][] = str_replace( $wp_upload_dir['baseurl'], $wp_upload_dir['basedir'], $attachment );

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions