Sakurairo icon indicating copy to clipboard operation
Sakurairo copied to clipboard

fix:使主题进一步适配 PHP8.x

Open Sualiu opened this issue 1 year ago • 0 comments

php8.2弃用了动态属性,需要事先声明变量,否则提示弃用警告 Deprecated。

修复此报错 Deprecated: Creation of dynamic property CSF_Field_color::$value is deprecated in xxx/wp-content/themes/Sakurairo/opt/classes/fields.class.php on line xx

翻看之前推送的 Pull,似乎有推送一样的,但不知为何取消了。目前使用主题推荐的PHP版本,即 php8.3 依旧会报错。

Sualiu avatar Feb 20 '24 14:02 Sualiu