wordpress報錯,不識別 true,將true加引號即可:
$Pic2436 = get_post_meta($post_id,’2436x1125_value’,‘ture’);
PHP 7.2.x 中廢棄的功能
不帶引號的字符串
不帶引號的字符串是不存在的全局常量,轉化成他們自身的字符串。 在以前,該行為會產生 E_NOTICE,但現在會產生 E_WARNING。在下一個 PHP 主版本中,將拋出 Error 異常。
<?phpvar_dump(NONEXISTENT);/* Output:Warning: Use of undefined constant NONEXISTENT – assumed ‘NONEXISTENT’ (this will throw an Error in a future version of PHP) in %s on line %dstring(11) “NONEXISTENT”*/以上就是WordPress報錯 assumed ‘ture’的解決辦法的全部內容,希望對大家的學習和解決疑問有所幫助,也希望大家多多支持武林網。
|
新聞熱點
疑難解答
圖片精選