函数原型
post_form_autocomplete_off()
函数描述
Disables autocomplete on the ‘post’ form (Add/Edit Post screens) for WebKit browsers, as they disregard the autocomplete setting on the editor textarea. That can break the editor when the user navigates to it with the browser’s Back button. See #28037
是否弃用
Warning: This function has been deprecated.
函数参数
无
函数返回值
无
函数位置
File: wp-admin/includes/deprecated.php
.
函数源码
function post_form_autocomplete_off() {
global $is_safari, $is_chrome;
_deprecated_function( __FUNCTION__, '4.6.0' );
if ( $is_safari || $is_chrome ) {
echo ' autocomplete="off"';
}
}
源码链接
变更日志
Version | Description |
---|---|
4.6.0 | This function has been deprecated. |
4.0.0 | Introduced. |