php - 致命错误:未捕获错误:调用未定义函数 get_post_datetime()
问题描述
当我尝试打开文章时,它显示以下错误:
Fatal error: Uncaught Error: Call to undefined function get_post_datetime() in C:\xampp\htdocs\wp-content\plugins\td-cloud-library\state\single\tdb_state_single.php:1666 Stack trace:
#0 C:\xampp\htdocs\wp-content\plugins\td-cloud-library\wp_templates\tdb_view_single.php(89): tdb_state_single->{closure}()
#1 C:\xampp\htdocs\wp-content\plugins\td-cloud-library\wp_templates\tdb_view_single.php(89): Closure->__invoke()
#2 C:\xampp\htdocs\wp-includes\template-loader.php(78): include('C:\\xampp\\htdocs...')
#3 C:\xampp\htdocs\wp-blog-header.php(19): require_once('C:\\xampp\\htdocs...')
#4 C:\xampp\htdocs\index.php(17): require('C:\\xampp\\htdocs...')
#5 {main} thrown in C:\xampp\htdocs\wp-content\plugins\td-cloud-library\state\single\tdb_state_single.php on line 1666
有人知道这个问题吗?
解决方案
get_post_datetime()
是在 WordPress 5.3 版中引入的。您需要更新到该版本才能更正您看到的错误。
https://make.wordpress.org/core/2019/09/23/date-time-improvements-wp-5-3/
推荐阅读
- r - 在 R 中使用“”
- java - 具有货币值动态掩码的文本字段 JavaFX(使用 TextFormatter)
- python-3.x - Git分支不显示任何结果
- php - 如何使用 php 从 MySQL 表中不同列的相同值中获取一个?
- javascript - 错误 instanceof X 没有按预期工作
- docker - 无法使用 Windows Docker 桌面上的 Kubernetes 连接到 NodePort 上的服务
- javascript - 使用 .load 从另一个页面加载内容会弄乱我当前的 css
- msal-react - 为非水疗应用程序实施 msal-react?
- assembly - 为什么 clang 为 64 位 double 的绝对值发出 32 位 float ps 指令?
- javascript - 错误 [ERR_HTTP_HEADERS_SENT]: 发送到客户端 Express EJS NODE 后无法设置标头