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

    (@vidhill)

    I have written a fix myself, at line 205

    instead of

    if (is_admin()) {
    	wp_enqueue_script('cfplsc_admin_js', trailingslashit(get_bloginfo('url')).'?cf_action=cfplsc_admin_js', array('jquery'));
    }

    (which would add the script on all admin pages)

    I added this:

    add_action("admin_print_scripts-post.php", 'cfplsc_load_admin_js' );
    
    	function cfplsc_load_admin_js() {
    		wp_enqueue_script('cfplsc_admin_js', trailingslashit(get_bloginfo('url')).'?cf_action=cfplsc_admin_js', array('jquery'));
    	}

    the script is only added to post.php admin pages

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: CF Internal Link Shortcode] Debug Errors’ is closed to new replies.