Support » Plugin: GFontr, Google WebFont » [Plugin: GFontr, Google WebFont] Gfontr uses incorrect URL for admin javascript

  • action_admin_head fails to retrieve the javascript files for wordpress installations where blogurl and siteurl differs.

    Here’s the fix.

    {{{
    function action_admin_head(){
    echo ‘<script src=”http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js&#8221; type=”text/javascript”></script>’;
    echo ‘<script src=”‘.get_option(‘siteurl’). ‘/wp-content/plugins/gfontr/gfontr-js.js” type=”text/javascript”></script>’;
    }
    }}}

  • The topic ‘[Plugin: GFontr, Google WebFont] Gfontr uses incorrect URL for admin javascript’ is closed to new replies.