函数文档

the_author_msn()

💡 云策文档标注

概述

the_author_msn() 是一个已弃用的 WordPress 模板标签,用于显示当前文章作者的 MSN 地址。自 WordPress 2.8.0 起,建议使用 the_author_meta('msn') 替代。

关键要点

  • the_author_msn() 函数已被弃用,不应在新代码中使用。
  • 替代方案是使用 the_author_meta('msn') 来获取作者的 MSN 地址。
  • 该函数在 WordPress 0.71 版本中引入,在 2.8.0 版本中被标记为弃用。

注意事项

  • 使用已弃用函数可能导致兼容性问题或未来版本中移除,建议更新代码以使用推荐替代方案。

📄 原文内容

Display the MSN address of the author of the current post.

Description

See also

Source

function the_author_msn() {
	_deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta('msn')' );
	the_author_meta('msn');
}

Changelog

Version Description
2.8.0 Deprecated. Use the_author_meta()
0.71 Introduced.