I was cleaning up debug warnings in WordPress and found a few problems with TypeKit v. 1 on WP 4.9.
– In the wptkf_admin()
function’s call to add_options_page()
, an obsolete parameter value, 1, was given rather than a capability string. I changed it to ‘manage_options’ and that seems to work. (see typekit/typekit.php
)
– In typekit/wptkf_admin.php
, there are several references to undefined indices of arrays (lines 2, 17, 48). I changed these to call isset() against the array element, before referencing it, if (isset($arr['ind']) && $arr['ind'] == value)
… (see typekit/wptkf_admin.php
)
– Line 75 of typekit/wptkf_admin.php
refers to undefined variables, $message and $message_export. I commented this line out, but I am not sure whether those might be set (sometimes) and I’d be missing that statement.
I cannot reach the author (the support link requires a registered login). I may check the plugin into my github account if I can’t communicate with the author.
]]>Hello.
I’ve just migrated a site I’m working on from my Localhost to be live on a test subdomain. Unfortunately the TypeKit fonts no longer work. Web Inspector shows that the CSS is calculating things correctly. I’ve had the main URL added for quite some time, as well as LocalHost.
Here is the URL.
https://test.laurenkinhan.com/
Before I migrated, the embed scripts were in the Header of my theme (and this worked until I tried to take it live). Once I put the pages up, and saw it didn’t work, I installed the Typekit WordPress plugin, which doesn’t work either.
Any help resolving this would be much appreciated.
All the best.
Burton
]]>