• Hi, I just enabled HTTPS on wp-admin only and your plugin tries to load pwa-util.js over HTTP instead of HTTPS because is is using the deprecated WP_PLUGIN_URL.

    Checkout https://ww.wp.xz.cn/ideas/topic/wp_plugin_url-doesnt-take-ssl-into-account for more info.

    HEre are the changes I made to fix it:

    
    --- a/public_html/wp-content/plugins/prowritingaid/pwa.php
    +++ b/public_html/wp-content/plugins/prowritingaid/pwa.php
    @@ -38,11 +38,11 @@ function pwa_tiny_mce_version($version) {
     function load_pwa_script(){
            //en queue JSON2.js
            wp_enqueue_script("json2");
    -       wp_enqueue_script( 'PWA_util', WP_PLUGIN_URL . '/prowritingaid/pwa-util.js');
    +       wp_enqueue_script( 'PWA_util', plugins_url( 'pwa-util.js', __FILE__ ) );^M
     }
     
     function load_pwa_css(){
    -       wp_enqueue_style( 'PWA_style', WP_PLUGIN_URL . '/prowritingaid/pwa.css', null, '1.0', 'screen' );
    +       wp_enqueue_style( 'PWA_style', plugins_url( 'pwa.css', __FILE__ ), null, '1.0', 'screen' );^M
     }
     
     function plugin_mce_css( $mce_css ) {
    

    Cheers,

    Bruno

The topic ‘plugin incompatible with HTTPS wp-admin’ is closed to new replies.