【发布时间】:2011-08-24 02:00:41
【问题描述】:
我正在更新旧主题并收到此消息。
注意:调用 get_the_author 时使用的参数自 2.1 版起已弃用,没有其他可用的替代方法。在第 3468 行的 /srv/www/virtual/example.com/htdocs/zzblog/wp-includes/functions.php 首页 pageid-641 page-author-test page-template page-template-MIMindexMOD-php">
我可以在我的主题functions.php中找到调用如下:
c[] = 'page-author-' . sanitize_title_with_dashes(strtolower(get_the_author('login')));
这是我能找到的对 get_the_author 的唯一参考。在 wordpress 法典中,它说整个函数 get_the_author 已贬值(连同传递的参数),因此想更新但不确定如何更新。
【问题讨论】: