Home Forums WoodMart support forum Theme css files within uploads always being served by http protocol

Theme css files within uploads always being served by http protocol

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #239801

    benrich
    Participant

    There’s a shortcomming of core WP that’s causing some of woodmart’s css to be served using the http protocol even though a site might be https.

    See https://developer.wordpress.org/reference/functions/wp_upload_dir/#comment-2576

    WoodMart uses wp_upload_dir() in the woodmart_enqueue_styles() function. It means any css served from the uploads folder is always http.

    I know this is WP’s problem but implementing a workaround within the woodmart theme can’t be that challenging, and would prevent mixed content issues.

    Something for the next update? 😉

    Attachments:
    You must be logged in to view attached files.
    #239810

    benrich
    Participant

    Further reading: https://core.trac.wordpress.org/ticket/25449

    Maybe it’s complicated.

    Anyway, if anyone else has a simlar issue then setting the url in settings does the trick.

    https://core.trac.wordpress.org/ticket/25449#comment:10

    #239857

    Hello,

    Thank you very much for choosing our theme and for contacting us.

    We are glad you have solved the problem. If you have any questions please feel free to contact us.

    Best Regards

Viewing 3 posts - 1 through 3 (of 3 total)