post_form_autocomplete_off() - WordPress 函数参考中文文档

返回介绍

post_form_autocomplete_off()

发布于 2017-09-11 字数1200 浏览 886 评论 0

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


描述

Replaced with wp_page_reload_on_back_button_js() that also fixes this problem.


源代码

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 描述
4.0.0 Introduced.

相关函数

Uses

  • wp-includes/functions.php:
    _deprecated_function()

User Contributed Notes

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

目前还没有任何评论,快来抢沙发吧!