WordPress从php5.6更新到7.x版本的时候,网站程序或者主题模板会出现一些警告错误,例如本博客升级php后在标签边栏出现报错如下:
Warning: Use of undefined constant px - assumed 'px' (this will throw an Error in a future version of PHP) in /www/wwwroot/oswhy.com/wp-content/themes/Ality/inc/functions/widgets.php on line 291
这个错误其实是px这个参数没有带引号导致的,php7.x以上的版本在...