WordPress.org

Ready to get started?Download WordPress

Forums

Toolbar Theme Switcher
[resolved] Changing theme not working when using https (4 posts)

  1. jakhoe
    Member
    Posted 1 year ago #

    When using both http and https on the site, it is not possible to change the theme on https pages.

    This is easily fixed by changing this line in 'get_cookie_name()':
    $hash = 'wordpress_tts_theme_' . md5( get_home_url() );
    to:
    $hash = 'wordpress_tts_theme_' . md5( home_url('','http') )

    Could you include this change in the next update?

    Except from this, plugin is working perfectly! Thank you!

    http://wordpress.org/extend/plugins/toolbar-theme-switcher/

  2. Andrey "Rarst" Savchenko
    Member
    Plugin Author

    Posted 1 year ago #

    Thank you for reporting!

    It seems that my local local stack is not setup for https development and testing right now, so not adding this immediately - noted to work on later.

  3. lkraav
    Member
    Posted 1 year ago #

    Great call @jakhoe, too bad I was re-inventing the wheel on this last night :)

  4. Andrey "Rarst" Savchenko
    Member
    Plugin Author

    Posted 1 year ago #

    Plugin version 1.1.3 released with this fix.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.