Load Transposh Translation Filter over HTTPS

Transposh Translation Filter is the translation filter for WordPress, Transposh helps you multi-lingualize your blog with ease by translating your posts automagically. Unfortunately, Transposh plugin doesn’t load over HTTPS, which is easy to fix…

How to load Transposh over HTTPS #

To load the Transposh Translation WordPress plugin over HTTPS, we need to make some changes to its code. First, open up the file transposh-translation-filter-for-wordpress\transposh.php in your favorite editor, and change line 146:

// $this->transposh_plugin_url = WP_PLUGIN_URL . '/' . $local_dir;
$this->transposh_plugin_url = plugins_url() . '/' . $local_dir;

Transposh dependency jQuery UI over HTTPS #

In the WordPress Dashboard back-end, the jQuery UI styles are hard-coded loaded from HTTP. This needs to be changed to HTTPS too.

Open up the file transposh-translation-filter-for-wordpress\wp\transposh_admin.php and change lines 245 and 246:

// wp_enqueue_style('jqueryui', 'http://ajax.googleapis.com/ajax/libs/jqueryui/' . JQUERYUI_VER . '/themes/ui-lightness/jquery-ui.css', array(), JQUERYUI_VER);
wp_enqueue_style('jqueryui', '//ajax.googleapis.com/ajax/libs/jqueryui/' . JQUERYUI_VER . '/themes/ui-lightness/jquery-ui.css', array(), JQUERYUI_VER);
// wp_enqueue_script('jqueryui', 'http://ajax.googleapis.com/ajax/libs/jqueryui/' . JQUERYUI_VER . '/jquery-ui.min.js', array('jquery'), JQUERYUI_VER, true);
wp_enqueue_script('jqueryui', '//ajax.googleapis.com/ajax/libs/jqueryui/' . JQUERYUI_VER . '/jquery-ui.min.js', array('jquery'), JQUERYUI_VER, true);

Do the same for the file transposh_postpublish.php too.

WP_PLUGIN_URL and HTTPS #

Plugin developers, do not use the WordPress constant WP_PLUGIN_URL, and load external stylesheets and scripts from // URI’s (omit the protocol).


Please Support Saotn.org

Each post on Sysadmins of the North takes a significant amount of time to research, write, and edit. Therefore, your donation helps a lot! For example, a donation of $3 U.S. buys me a cup of coffee, and as you know: things jsut work better with coffee. A $10 U.S. donation buys me one month of web hosting (yes, hosting costs money). But seriously, thank you for any amount. Much appreciated!

I thought you might find this interesting:   add_rewrite_rule() accepts an array of query vars in WordPress 4.4

Please donate to support this site if you found a post interesting or if it helped you solve a problem. Thanks! (Tip: no Paypal account required)

If you appreciated this post, then please donate using this Paypal button


Jan Reilink

My name is Jan. I am not a hacker, coder, developer, programmer or guru. I am merely a system administrator, doing my daily thing at Vevida in the Netherlands. With over 15 years of experience, my specialties include Windows Server, IIS, Linux (CentOS, Debian), security, PHP, websites & optimization.

Leave a Reply

Be the First to Comment!

Hi! Join the discussion, leave a reply!