lloc/Multisite-Language-Switcher — pull request #12 by TobiasBg (2011-11-26 21:57:40+00:00)
Title: URLs should be generated with WordPress API

Currently the URLs for the src parameter of the flag icons in the backend (e.g. on /wp-admin/edit.php or /wp-admin/edit-tags.php?taxonomy=category) are created with the fixed WP_PLUGINS_URL constant, which does not make use of SSL detection. When browsing the backend via https://, this leads to "mixed content" warnings, as the icons/flags are loaded via http://.
Instead of using the constant, the WordPress API function plugins_url() which wraps the constant, should be used.
As that function needs the value of __FILE__ from the main plugin file, I introduced a constant for this in the commit.