the_author_yim()
云策文档标注
概述
the_author_yim() 是一个已弃用的 WordPress 模板标签,用于显示当前文章作者的 Yahoo! IM 名称。自 WordPress 2.8.0 起,建议使用 the_author_meta('yim') 替代。
关键要点
- the_author_yim() 函数已被弃用,自 WordPress 2.8.0 版本起不再推荐使用。
- 替代方案是使用 the_author_meta('yim') 来获取和显示作者的 Yahoo! IM 名称。
- 该函数在 wp-includes/author-template.php 中定义,并调用 _deprecated_function() 来标记弃用状态。
- 最初在 WordPress 0.71 版本中引入,在 2.8.0 版本中被弃用。
注意事项
- 在开发新主题或插件时,应避免使用 the_author_yim(),转而使用 the_author_meta('yim') 以确保兼容性和最佳实践。
- 如果现有代码中使用了此函数,建议更新以避免未来版本中可能出现的功能失效或警告。
原文内容
Display the Yahoo! IM name of the author of the current post.
Description
See also
Source
function the_author_yim() {
_deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta('yim')' );
the_author_meta('yim');
}
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Deprecated. Use the_author_meta() |
| 0.71 | Introduced. |