Title: CKEditor plugin, Uploading where admin is restricted to https
Last modified: August 20, 2016

---

# CKEditor plugin, Uploading where admin is restricted to https

 *  Resolved [G0UQT](https://wordpress.org/support/users/g0uqt/)
 * (@g0uqt)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/uploading-where-admin-is-restricted-to-https/)
 * CKEditor plugin seems to be unable to upload images when https is forced on a
   wordpress site. The follow patch to ckeditor_class.php, to “function __construct()”
   fixes the issue, add these lines before define(‘CKEDITOR_PLUGIN_URL’, $this->
   plugin_path); :
 *     ```
       if($_SERVER['HTTPS']) {
                $siteurl = str_replace('http:', 'https:', $siteurl);
                $this->plugin_path = str_replace('http:', 'https:', $this->plugin_path);
       }
       ```
   
 * Regards,
    Steve

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [michal](https://wordpress.org/support/users/michal_cksource/)
 * (@michal_cksource)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/uploading-where-admin-is-restricted-to-https/#post-2481924)
 * Thank you [@g0uqt](https://wordpress.org/support/users/g0uqt/) for report this
   and for you patch. We will check and add this to future versions.
 *  [dczepierga](https://wordpress.org/support/users/dczepierga/)
 * (@dczepierga)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/uploading-where-admin-is-restricted-to-https/#post-2482117)
 * [@g0uqt](https://wordpress.org/support/users/g0uqt/), really thx for your patch.
 * I commit it to SVN at revision: 486824.
 * Greetings
 *  Thread Starter [G0UQT](https://wordpress.org/support/users/g0uqt/)
 * (@g0uqt)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/uploading-where-admin-is-restricted-to-https/#post-2482118)
 * [@dczepierga](https://wordpress.org/support/users/dczepierga/), ok. I’m glad 
   to be able to contribute.
 * Steve
 *  [michal](https://wordpress.org/support/users/michal_cksource/)
 * (@michal_cksource)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/uploading-where-admin-is-restricted-to-https/#post-2482122)
 * [@g0uqt](https://wordpress.org/support/users/g0uqt/) can you mark this topic 
   as resolved ?

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘CKEditor plugin, Uploading where admin is restricted to https’ is closed
to new replies.

## Tags

 * [ckeditor-for-wordpress-new-feature](https://wordpress.org/support/topic-tag/ckeditor-for-wordpress-new-feature/)

 * 4 replies
 * 3 participants
 * Last reply from: [michal](https://wordpress.org/support/users/michal_cksource/)
 * Last activity: [14 years, 5 months ago](https://wordpress.org/support/topic/uploading-where-admin-is-restricted-to-https/#post-2482122)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
