[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=”https://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js” 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.