• I just installed this plugin and it seemed to work fine when I first tried it. The problem is that when I go to the edit post page and I click on the “text” tab (next to the “visual” one), I get an error:

    Uncaught TypeError: Cannot read property 'getSelection' of undefined
        at q (load-scripts.php?c=1...embed&ver=4.9.4:834)
        at e (load-scripts.php?c=1...embed&ver=4.9.4:834)
        at HTMLDocument.<anonymous> (load-scripts.php?c=1...embed&ver=4.9.4:834)
        at a (wp-tinymce.php?c=1&ver=4607-20180123:1)
        at HTMLDocument.p (wp-tinymce.php?c=1&ver=4607-20180123:1)

    It disappears when I deactivate the plugin. So I’d like to ask if you could, in any way, give us the ability to disable HTTPS in the admin page.

    Thanks

Viewing 1 replies (of 1 total)
  • Thread Starter toufic

    (@toufic)

    You can replace:

    // Load main class
    require_once(FHTTPS_PATH.'/core/core.php');
    FHTTPS_Core::instance();

    with:

    if ( ! is_admin() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) ) {
    	// Load main class
    	require_once(FHTTPS_PATH.'/core/core.php');
    	FHTTPS_Core::instance();
    }

    and this disables the plugin in wp-admin pages.

Viewing 1 replies (of 1 total)

The topic ‘Bug with admin page’ is closed to new replies.