_insert_into_post_button()
云策文档标注
概述
_insert_into_post_button() 函数曾用于显示“插入到文章”按钮,现已弃用并替换为存根函数。此函数在 WordPress 3.5.0 版本中引入并标记为弃用。
关键要点
- 函数 _insert_into_post_button() 已弃用,不应在新代码中使用。
- 弃用通过 _deprecated_function() 标记,位于 wp-includes/functions.php 文件中。
- 相关功能或替代方案需参考 WordPress 更新文档或当前 API。
代码示例
function _insert_into_post_button( $type ) {
_deprecated_function( __FUNCTION__, '3.5.0' );
}注意事项
使用此函数会触发弃用警告,建议开发者更新代码以避免兼容性问题。
原文内容
This was once used to display an ‘Insert into Post’ button.
Description
Now it is deprecated and stubbed.
Source
function _insert_into_post_button( $type ) {
_deprecated_function( __FUNCTION__, '3.5.0' );
}
Changelog
| Version | Description |
|---|---|
| 3.5.0 | Introduced. |