Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attachments not working when SSL is activated #1

Open
Gandhi11 opened this issue Oct 16, 2015 · 1 comment
Open

Attachments not working when SSL is activated #1

Gandhi11 opened this issue Oct 16, 2015 · 1 comment

Comments

@Gandhi11
Copy link

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 );
@codearachnid
Copy link
Owner

Great idea - thank you for the tip - look for it in an upcoming release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants