函数文档

comments_popup_script()

💡 云策文档标注

概述

comments_popup_script() 是一个已弃用的 WordPress 函数,用于显示评论的 JS 弹窗脚本。自 WordPress 4.5.0 版本起,该函数被标记为弃用,建议开发者避免使用。

关键要点

  • 函数 comments_popup_script() 用于显示评论的 JavaScript 弹窗脚本。
  • 该函数在 WordPress 4.5.0 版本中被弃用,使用 _deprecated_function() 标记。
  • 函数最初在 WordPress 0.71 版本中引入,现已不建议在新代码中使用。

注意事项

开发者应避免使用此弃用函数,转而使用替代方案或更新代码以符合最新 WordPress 版本。


📄 原文内容

Display the JS popup script to show a comment.

Source

function comments_popup_script() {
	_deprecated_function( __FUNCTION__, '4.5.0' );
}

Changelog

Version Description
4.5.0 Deprecated.
0.71 Introduced.