我收到这样的通知错误:
注意:wp-content/themes/aquasize/admin/library/engines/typography-engine.php:66 - 未定义变量:样式表
注意:wp-content/themes/aquasize/admin/library/engines/typography-engine.php:70 - 未定义变量:样式表
这是我的完整代码: http: //pastebin.com/VsrHzjJ6
这是第 66 行:
preg_match("/\.css/i", $stylesheet, $matches);
这是第 70 行:
if( $stylesheet ) wp_enqueue_style( $font, $stylesheet, 1, 2 );
我尝试修复但在最新的 PHP 版本上失败了。非常感谢您的所有帮助。谢谢